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
Message-Id: <E1DQQpI-0005Jo-Pg@wiggum.w3.org>


------- 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"
  <p xsi:type="xs:decimal">3.14156</p>

will produce the result

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

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:23 UTC