[Bug 1447] New: [XQuery] strip construction and is-id on attributes

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

           Summary: [XQuery] strip construction and is-id on attributes
           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: mrys@microsoft.com
         QAContact: public-qt-comments@w3.org


The spec currently says in 3.7.1.3: 
"If construction mode in the static context is strip:

The type-name property of each copied element node is set to xdt:untyped. Its 
nilled, is-id, and is-idrefs properties are set to false.

The type-name property of each copied attribute node is set to 
xdt:untypedAtomic."

attributes can also have an is-id property according to the following sentence 
in 3.7.1.1 & 3.7.3.2:
"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;"

But it is also set when the type of the attribute is of type xs:ID.

I think that striping type information should set the is-id property the 
attribute to false as long as the original type of the attribute (xs:ID or 
subtype) was responsible for the is-id property to be set to true.

Received on Saturday, 14 May 2005 01:14:54 UTC