Hello,

I'm trying to write my own URIResolver to keep track of changes in imported 
stylesheets when compiling the main stylesheet.
Lets have this layout

1) http://localhost/main.xsl includes layouts/heads.xsl
2) heads.xsl includes ../helpers/someFunctions.xsl
3) http://localhost/main.xsl includes layouts/footers.xsl

The interface method "resolve" in my uri-resolver is called three times with 
the following parameters:

1) href=layouts/heads.xsl base=http://localhost/main.xsl
2) href=../helpers/someFunctions.xsl base=http://localhost/main.xsl
3) href=layouts/footers.xsl base=http://localhost/main.xsl

even if the file is included from another stylesheet like 2), the base does 
not change.
Storing the base is no solution, 
in 1) the base would be http://localhost/layouts/heads.xsl
but in 2) it would be http://localhost/helpers/someFunctions.xsl
and 3) would fail.

Is this expected behaviour and if so, how can I manually keep track of the 
base?

Thanks Holger

Reply via email to