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
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Ibf3T-0008IE-Ee@wiggum.w3.org>

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





------- 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 GMT

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