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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--