xsl-list
[Top] [All Lists]

RE: XSLT - base URL for relative file paths - from Stylesheet location or XML document location?

2003-05-14 11:10:47
When using different XSLT processors there seems to be at 
least two different conventions being used for WHICH of the 
stylesheet or the document (or maybe even the calling 
location?) determines the base URL for relative files paths.

Is this specified unambiguously in the W3C standard (I 
thought it was) or is it unspecified / open to different 
interpretations by different XSLT implementers?

It is clearly defined in the spec. If the first argument of the
document() function is a string, the base URI is taken from the
stylesheet; if it is a node, then it is taken from the base URI of that
node.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list