I import that library and for testing I don't bother setting the parameter.
My main xsl document has the following path:
d:/projects/project1/datafeeds
The library document is at:
d:/projects/project1/publish/templates
and the skin document is at:
d:/projects/project1/publish/skins
Now my understanding of the XSL spec says that in a situation above where the URI used in document comes from the template, it is resolved relative to the template (in the absence of a second argument). Now since I've defined the URL in the lib.xsl file, the URL should be resolved relative to lib.xsl. That is it should be trying to load
Now which is right? For this project I don't really care since the node set will be set externally before applying the template but fundamentally I need to know.
Subject:Re: Relative URLs in document() function Author:Minollo I. Date:04 Oct 2001 06:17 PM
I think things should work as you are expecting, i.e. the relative path
used in the document() function should be computed relative to the XSLT
file (master, included or imported) which is using it, not always relative
to the master file.
That's also the way relative paths in include/import directives work (in
Stylus Studio too).
We will look into the problem, and have it fixed before 3.1 Final is released.