[Bug 5083] [XQuery] Namespace declaration attributes in direct element constructors

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





------- Comment #4 from mike@saxonica.com  2007-10-16 12:21 -------
In response to action ACTION A-343-5, I propose the following changes:

(1) In 3.7.1.1, list item 1, change the first sentence from <old>Each
consecutive sequence of literal characters in the attribute content is treated
as a string containing those characters.</old> to <new>Each consecutive
sequence of literal characters in the attribute content is treated as a string
containing those characters, except that any occurrence of "{{" is replaced by
"{", any occurrence of "}}" is replaced by "}", and any occurrence of
EscapeQuot or EscapeApos is replaced by a quotation mark or apostrophe
character as appropriate.</new> (This seems to be an omission from the current
rules for processing attribute values)

(2) In 3.7.1.2 para 2, delete the sentence "The value of a namespace
declaration attribute must be a URILiteral; otherwise a static error is raised
[err:XQST0022]."

(3) At the start of the bulleted list in 3.7.1.2, add the list item:

* The value of the namespace declaration attribute (a DirAttributeValue) is
processed as follows. If the DirAttributeValue contains an EnclosedExpr, a
static error is raised [err@XQST0022]. Otherwise, it is processed as described
in rule 1 of section 3.7.1.1 Attributes. An implementation MAY raise a static
error [err:XQST0046] if the resulting value is of nonzero length and is not in
the lexical space of xs:anyURI. The resulting value is used as the namespace
URI in the following rules.

(4) In the existing first bullet, change "The local part of the attribute name
is interpreted as a namespace prefix and the value of the attribute is
interpreted as a namespace URI. This prefix and URI..." to read "If the prefix
of the attribute name is xmlns, then the local part of the attribute name is
interpreted as a namespace prefix. This prefix and the namespace URI..."

(5) In the existing second bullet, change "If the name of the namespace
declaration attribute is xmlns with no prefix, the value of the attribute is
interpreted as a namespace URI. This URI specifies ..." to "If the name of the
namespace declaration attribute is xmlns with no prefix, then the namespace URI
specifies ..." 

Received on Tuesday, 16 October 2007 12:22:04 UTC