[xslt] Is document() supposed to decode URIs?



Aloha,

When loading external documents in a stylesheet with the document()
function, the URI string is decoded before sending the request to the
web server.

e.g.
<xsl:apply-templates select="document('http://xmlsoft.org/a%20file.html')"/>
requests 'http://xmlsoft.org/a file.html' from the web server...

Is this the intended behavior?
It seems strange to call document('http://xmlsoft.org/a%2520file.html')
to request 'http://xmlsoft.org/a%20file.html' from the web server.

- Glen Nakamura




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]