[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: the document() in IE
David Carlisle wrote:
In FF and any other XSLT 1 processor I am aware of, the document() Thanks for adding this depth, David. Do you happen to know whether this holds for a variable or parameter? I.e., if the variable holds a LRE, or a string, I reckon this base uri should still be (by default) the current stylesheet. But if you have a variable holding a reference to an xpath into the source tree or an xml (using another document()), will it then be the base uri of this source tree which is used for resolution? Is this the same for xslt 1 and 2? With your info, another (static or dynamic) resolution comes to mind: document('path', document('absolute path to current xslt')) where the second argument should be placed in a global parameter: document('path', document($path-to-xslt)) which can then be set from the calling application. If you use a PI, you could make this dynamic with any SSI or CGI technique (only FF allows for parameters passed in the PI declaration, IE does not). The nice side of this solution is that it does not need a separate treatment for different browsers (whereas my solution creates a new relative path to the xslt, relative to the enclosing html, only when it is IE). Finally: this new solution would work with document(), but not with xsl:import/include, which are relative to the xslt base always (and do not take parameters anyway). Cheers, -- Abel
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|