W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2009

[Bug 8219] [XSLT] Shallow copy and xml:base

From: <bugzilla@wiggum.w3.org>
Date: Fri, 06 Nov 2009 22:13:15 +0000
To: public-qt-comments@w3.org
Message-Id: <E1N6X3T-0005Dd-84@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8219


Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




--- Comment #3 from Michael Kay <mike@saxonica.com>  2009-11-06 22:13:15 ---
OK, I see the problem now. The current text is taken from the identical text
for the xsl:copy-of instruction, and it's written in the mistaken belief that
when you copy an element, you copy its attributes. So it's written to say that
the base-uri attribute of the element before copying should be used, but this
doesn't make sense, because the intent of the rule is that the base URI of an
element should always be consistent with its xml:base attribute if it has one,
and in this case the xml:base attribute of the new node is not the same as the
xml:base attribute of the old one.

So we should probably change the sentence

The base URI of a node is copied, except in the case of an element node having
an xml:base  attribute, in which case the base URI of the new node is taken as
the value of the xml:base  attribute, resolved if it is relative against the
base URI of the xsl:copy  instruction.

to read

When a node is copied, its base URI is copied, except when the result of the
xsl:copy instruction is an element node having an xml:base attribute, in which
case the base URI of the new node is taken as the value of its xml:base
attribute, resolved if it is relative against the base URI of the xsl:copy
instruction.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 6 November 2009 22:13:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:29 UTC