[Bug 4061] IdentityConstraint test idL100: field selects more than one node

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

           Summary: IdentityConstraint test idL100: field selects more than
                    one node
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Microsoft tests
        AssignedTo: ht@inf.ed.ac.uk
        ReportedBy: mike@saxonica.com
         QAContact: public-xml-schema-testsuite@w3.org


In the Microsoft IdentityConstraint test set, test idL100, the schema has:

                <xs:key id="foo123" name="tableu">
                        <xs:selector xpath=".//myNS:t | .//myNS:u"/>
                        <xs:field xpath="@*"/>
                </xs:key>

and the instance has:

<myNS:t myNS:row="1" xsi:nil="true"/>

The field selector @* therefore selects two attributes, which makes it invalid.

The test is described as valid. Perhaps there is some theory that the XPath
expression will not select the xsi:nil attribute. I can't find any
justification for this theory, however.

Received on Sunday, 10 December 2006 00:00:42 UTC