W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

[Bug 4217] xml prefix should be optional in K2-DirectConElem-38 expected output

From: <bugzilla@wiggum.w3.org>
Date: Mon, 15 Jan 2007 11:13:41 +0000
To: public-qt-comments@w3.org
Message-Id: <E1H6PmX-0005WU-4Z@wiggum.w3.org>


------- Comment #2 from mike@saxonica.com  2007-01-15 11:13 -------
Oh dear, can of worms here.

The serialization spec does NOT prohibit the output of redundant namespace
declarations (such as the declaration of the XML namespace).

The canonicalization spec, which we use to compare results, does say (see [1])
that superfluous namespace declarations should be ignored. However, a literal
reading of that section suggests that declaring the XML namespace is considered
superfluous if it appears on a child element, but not if it appears on the
outermost element.

In practice, I think it would be sensible for your XML comparator to ignore any
declaration of the XML namespace, wherever it appears. (It would also be
sensible for published test results not to include a declaration of the XML
namespace, since I would think that most serializers will remove it even though
they aren't strictly required to.)

[1] http://www.w3.org/TR/xml-c14n#SuperfluousNSDecl
Received on Monday, 15 January 2007 11:13:50 UTC

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