W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2005

[Bug 1272] 3.7.4 In-scope Namespaces of a Constructed Element looks buggy

From: <bugzilla@wiggum.w3.org>
Date: Tue, 26 Apr 2005 14:14:12 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1DQQpI-0005Jo-Pg@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1272





------- Additional Comments From mike@saxonica.com  2005-04-26 14:14 -------
This is not a bug fix: the spec as written is consistent, and is the way it is
by design, not by accident. Hence the note which you cite, which is there to
emphasize that it is intentional that copy-namespaces only affects copied
elements and not constructed elements.

The effect of your change would be that with copy-namespaces=no, the query

<a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xs="http://www.w3.org/2001/XMLSchema>
  <p xsi:type="xs:decimal">3.14156</p>
</a>

will produce the result

<a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  <p xsi:type="xs:decimal">3.14156</p>
</a>

which people didn't think was a good idea. Why would the user declare the
namespace if they didn't want it included in the result?

Michael Kay
Received on Tuesday, 26 April 2005 14:14:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:37 GMT