[Bug 5083] Namespace declaration attributes in direct element constructors

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 UTC