Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
According to section 4.2 of the XML Base Recommendation,[1]
The base URI of an element is:
- the base URI specified by an xml:base attribute on the element, if one exists, otherwise
- the base URI of the element's parent element within the document or external entity, if one exists, otherwise
- the base URI of the document entity or external entity containing the element.
Neither Xalan-J Interpretive nor XSLTC seems to correctly compute the base URI of elements that have an xml:base attribute or that are in external entities. This can be seen in a reference to the document function, where the first argument is a string containing a relative URI and the second argument either is absent, in which case the base URI of the element in the stylesheet that contains the expression should be used as the base against which the first argument is resolved, or is a node-set, in which case the base URI of the first node in the node-set in document order should be used as the base against which the first argument is resolved.[2]
[1] http://www.w3.org/TR/xmlbase/
[2] http://www.w3.org/TR/xslt#document
Attachments
Attachments
Issue Links
- relates to
-
XALANJ-2297 URIResolver passed wrong base URI for nested include/import
- Closed