I should have done a copy paste job when writing this out to the mailing list - my fault... My document() call actually looks like this:

<xsl:copy-of select="document('http://localhost/articles/testpage.xml?style=html')"/>

ie. it does use the complete URL, thus forcing AxKit to do a full request. However, the querystring is not being passed on - The error logs show the request for the URL as 'articles/testpage.xml'


Could this be a bug in libXSLT?


On 24 Aug 2005, at 06:39, [EMAIL PROTECTED] wrote:

I am trying to include a fragment of an XML document using the XSL
document() function. I need to be able to use a querystring in the URI in
order to select the appropriate style via the StyleChooser module.

I have the following code:

<xsl:copy-of select="document('testpage.xml?style=html')"/>
<xsl:copy-of select="document('testpage.xml?style=meta')"/>

However both requests ignore the querystring and the default style is
applied to each.

Unfortunately the only way to get querystring params applied is to do a full request, i.e. using the http: scheme. The default implementation with no scheme is sort of like file:, but within the web filesystem hierarchy.

Matt.


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


_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk


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

Reply via email to