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

Subject: RE: [xsl] XSLT - base URL for relative file paths - from Stylesheet location or XML document location?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 14 May 2003 19:10:47 +0100
> 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


Current Thread
  • RE: [xsl] XML merge
    • Jarno . Elovirta - Wed, 14 May 2003 12:16:04 +0300
      • <Possible follow-ups>
      • Molnar Agnes - Wed, 14 May 2003 18:43:21 +0200 (CEST)
        • Mike Trotman - Wed, 14 May 2003 16:52:18 +0100
          • Mike Brown - Wed, 14 May 2003 11:14:11 -0600 (MDT)
          • Michael Kay - Wed, 14 May 2003 19:10:47 +0100 <=
          • TP - Wed, 14 May 2003 13:24:39 -0500
          • TP - Thu, 15 May 2003 07:57:38 -0500