DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15828>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15828 URIResolver called with wrong base parameter for document() (xsltc) [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED ------- Additional Comments From [EMAIL PROTECTED] 2003-06-17 19:36 ------- The document function doesn't seem to have been working correctly when a URIResolver is set on the TransformerFactory in XSLTC. The URIResolver method takes two String arguments:href, and base. The href argument can be a relative or absolute URI which is passed to the document function. The base argument is the "base URI in in effect when the href attribute was encountered". It should be the URI of the stylesheet. See: http://www.w3.org/TR/xslt#document http://www.w3.org/TR/xslt#base-uri With 2.4.1 In two consecutive calls to the document function... 1st call: href: argument to document function base: URI of *source document* argument as passed to transform method 2nd call: href: argument to document function base: Absolute URI of *source document* With 2.5.1 href: Absolute URI of argument to document function (even if the argument was originally a relative path.) base: URI of *source document* as it was passed in to the transform method. I have applied a patch which should give (consistent with Xalan-Interpretive): href: argument to document function base: Absolute URI of *stylesheet* I needed to modify the DOMCache interface which I believe there is no longer public access to now that the old native API for XSLTC has been removed and we used TrAX instead. It may be desirable to completely remove the DOMCache interface and the DocumentCache down the road. Please verify!
