Subject: RE: [xsl] xml:base, resolve-uri and imported xslt files: how to get the importing base url from imported xslt From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 9 Oct 2006 17:26:33 +0100 |
> Hmm, for some reason, using the path in this overloaded > variable, is still interpreted as relative to the imported > stylesheet, instead of the importing stylesheet. If you pass a string to the document() function, then it's resolved against the base URI of the XSLT instruction containing the call to the document() function, not the module in which you constructed the string. You either need to do the call on document() in the importing module; or you need to make the base URI of the importing module accessible to the imported module for example by declaring a global variable <xsl:variable name="importing-base-uri" select="base-uri()"/> in the importing module. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xml:base, resolve-uri and, Abel Braaksma | Thread | Re: [xsl] xml:base, resolve-uri and, Abel Braaksma |
Re: [xsl] xml:base, resolve-uri and, Abel Braaksma | Date | Re: [xsl] xml:base, resolve-uri and, David Carlisle |
Month |