[Bug 1458] New: XQST0082 should be a dynamic error not a static error

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

           Summary: XQST0082 should be a dynamic error not a static error
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


This relates to attribute constructors for the xml:id attribute within a direct
element constructor. List item 5 in 3.7.1.1 reads:

If the attribute name is in namespace http://www.w3.org/XML/1998/namespace and
its local part is id (informally, if the attribute name is xml:id), the
string-value of the attribute must be in the lexical space of the type xs:NCName
[err:XQST0082], and the is-id property of the resulting attribute node is set to
true; otherwise the is-id property is set to false.

In general it's not known until run-time whether the value of the attribute is a
valid NCName, so this should be a dynamic error not a static error.

Michael Kay

Received on Tuesday, 17 May 2005 14:22:01 UTC