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=21958>. 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=21958 Base URL wrong in included & imported documents Summary: Base URL wrong in included & imported documents Product: XalanJ2 Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In XSLT 1.0 Spec section 12.1 it says (regarding document()) that: The URI reference may be relative. The base URI (see [3.2 Base URI]) of the node in the second argument node-set that is first in document order is used as the base URI for resolving the relative URI into an absolute URI. If the second argument is omitted, then it defaults to the node in the stylesheet that contains the expression that includes the call to the document function. In an included or imported style sheet, the Base URI should be the URI of the included stylesheet. Xalan currently always uses the top level stylesheet's URI as the base URI, which makes re-using stylesheets which use document inconvenient at best. Possibbly document('') should return the current (included or imported) stylesheet as well, but I am not really sure about that. I can't think of any work around for the problem.
