I import that library and for testing I don't bother setting the parameter.
My main xsl document has the following path:
The library document is at:
and the skin document is at:
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
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.