This is resolved. There already was an isuue: http://issues.apache.org/jira/browse/XALANJ-2297
Even if I should have found this by myself, Yash Talwar had to point me to that direction - sorry for that. The patch, which is currently not applied, did the trick. Thank you everybody and - sorry for making trouble! Holger Am Montag, 24. Juli 2006 17:26 schrieb Holger Dehnhardt: > 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