Subject: Re: [xsl] xml:base, resolve-uri and imported xslt files: how to get the importing base url from imported xslt From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 09 Oct 2006 19:32:28 +0200 |
the variable pathToConfig holds a string not a uri so it is not subject to any uri resolution while being passed around -as a string- If you then use it in a place where a URI is expected (eg the argument to doc()) then (in any particular instance) URI resolution will be just as if a string constant had been used at that point, the string valued variable doesn't hold any information about _where_ it was defined.
which is effectively similar to my suggestion of calling doc() in the importing stylesheet rather than the imported one, both have the effect of doing the resolution at that point.
No the base URI of each stylesheet module is (unless overrideen with
xml:base) the URI used to retrieve that module.
- xslt created via DOM looses the base-href completely (I have yet to find out what happens here)
You don't have to navigate the xsl:import tree.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xml:base, resolve-uri and, David Carlisle | Thread | Re: [xsl] xml:base, resolve-uri and, Abel Braaksma |
RE: [xsl] Opera 9 XSLT error - Call, Brian Martinez | Date | [xsl] XSLT functions in XPath, Victor Toni |
Month |