This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2774 - [XSLT] copying of base URI
Summary: [XSLT] copying of base URI
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Candidate Recommendation
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
: 2773 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-27 00:18 UTC by Florent Georges
Modified: 2006-02-02 20:09 UTC (History)
1 user (show)

See Also:


Attachments

Description Florent Georges 2006-01-27 00:18:08 UTC
The last paragraph of the section "Shallow Copy" says:

"" The base URI of a node is copied. However, if the copied node is subsequently
attached as a child to a new element, the final copy of the node inherits its
base URI from its parent node, unless this is overridden using an xml:base
attribute. ""

So it says only "as a child to a new element".  I guess document nodes be added
here too, because the same note occurs in all other node constructors.  For
example, xsl:element says:

"" Note, however, that this is only relevant when creating parentless elements.
When the new element is copied to form a child of an element or document node,
the base URI of the new copy is taken from that of its new parent. ""

Thanks to David Carlisle to help me finding this.

--drkm
Comment 1 Michael Kay 2006-01-27 00:42:27 UTC
*** Bug 2773 has been marked as a duplicate of this bug. ***
Comment 2 Michael Kay 2006-01-27 08:44:13 UTC
added a title (summary)
Comment 3 Michael Kay 2006-01-31 17:19:32 UTC
This clarification has now been added to the relevant sentence under xsl:copy
and xsl:copy-of. Thank you for raising it.
Comment 4 Michael Kay 2006-02-02 20:09:29 UTC
We are now closing this bug, having made the changes identified. If you are in
any way unhappy about this closure, please let us know.

Michael Kay
for the XSL WG