URIResolver with relative URLs
I have XML that I want to transform using XSLT.
The location of the XSLT is done using a URL http:// for file:/.
Then the XSLT refer to some other XSLT or XML using relative URL (e.g. <xsl:include href="../hello.xslt" /> or document('hello2.xml').
It's possible that A.xslt refers to B.xslt with is in another directory and B.xslt refers to C.xslt which is again in another XSLT.
The problem I have with the URIResolver that I'm writing is that I don't know from which document the URL to resolve is comming from.
How can I know in Source resolve(String href, String base) which document is trying to resolve this URL?
I just have href="../hello.xslt" and base="" but as I don't know which document is asking for it, I cannot resolve the location.
Please help,
Anthony

