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

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 UTC