On Thursday, Feb 6, 2003, at 08:00 Europe/London, V Shah wrote:

i want to be able to override the xml-stylesheet PI in an xml file depending
on the path used to access the file, e.g. i've setup apache aliases so that
http://site/path1/file.xml and http://site/path2/file.xml point to the same
file, but if path2 is used, use a different stylesheet to perform xsl
transformation. AxAddURIProcessor, or AxAddProcessor within a Location
directive seem to be what i want, but i can't seem to find the proper usage.
I've tried:
AxResetProcessors
AxAddURIProcessor text/xsl /index-special.xsl "path2/.*\.xml$"

and
<Location /path2>
AxResetProcessors
AxAddProcessor text/xsl /index-special.xsl
</Location>

but neither works - axkit always uses the stylesheet specified in the xml
PI. What am i missing? Or am i barking up the wrong tree and these
directives are not what i actually want?
http://axkit.org/wiki/view/AxKit/ConfigQuickRef#AxIgnoreStylePI

Matt.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to