Welcome! Log In Create A New Profile

Advanced

XSLT, one XML file and differing URIs

March 19, 2014 06:48AM
Hello,

I was wondering if anyone could put on the right path to do the following,

So in it's simplest form, lets say I have one file "chapter.xml" in directory A

/A/chapter.xml

I want to use nginx XSLT processing ability to "present" this file based on different URIs, so

If someone accesses /A/ it presents chapter.xml using XSLT file chapter.xsl, if someone accesses /A/sec1/ it presents chapter.xml using XSLT file sec.xsl and passes it parameter 1, if someone accesses /A/sec2/ it presents chapter.xml using XSLT file sec.xsl and passes it parameter 2.

etc.

I can achieve the first one as follows

location /A/ {;
xslt_stylesheet chapter.xsl;
index chapter.xml
}

but I'm stuck on /A/sec1 /A/sec2 etc

Thanks,

Dave
SubjectAuthorPosted

XSLT, one XML file and differing URIs

dvdnginxMarch 19, 2014 06:48AM

Re: XSLT, one XML file and differing URIs

Maxim DouninMarch 19, 2014 10:10AM

Re: XSLT, one XML file and differing URIs

dvdnginxApril 03, 2014 07:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 180 on December 21, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready