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

[Bug 5083] Namespace declaration attributes in direct element constructors

From: <bugzilla@wiggum.w3.org>
Date: Sat, 29 Sep 2007 16:20:35 +0000
To: public-qt-comments@w3.org
Message-Id: <E1Ibf3T-0008IE-Ee@wiggum.w3.org>


------- Comment #1 from mike@saxonica.com  2007-09-29 16:20 -------
A number of tests in the test suite adopt the interpretation that curly braces
in the namespace URI are not allowed. For example, Constr-Namespace-25 is

<elem xmlns="http://www.example.com{'/namespace'}"/>

and expects XQST0022. I don't think this interpretation is justified by a
literal reading of the spec: in this example the value is both a valid
DirAttributeValue and a valid URILiteral.

We could adopt this interpretation but the effect would be to outlaw namespace
URIs containing curly braces, with no escape mechanism available. Although such
namespace URIs are rare, they are legal, so this seems inadvisable.

Another possible solution would be to recognize doubled curly braces as an
escape representation of a curly brace.

Other tests impacted are:
K2-DirectConElemNamespace 15 to 18, 34 to 38, 44
Received on Saturday, 29 September 2007 16:20:47 UTC

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