This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4061 - IdentityConstraint test idL100: field selects more than one node
Summary: IdentityConstraint test idL100: field selects more than one node
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: metadata updated 2009-01-13
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-10 00:00 UTC by Michael Kay
Modified: 2009-01-13 22:32 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-12-10 00:00:35 UTC
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.
Comment 1 Zafar Abbas 2007-01-29 22:12:10 UTC
This issue in the test suite in due to a corresponding issue in the Microsoft
Schema processors where attributes from the xsi namespaces are not counted towards the node-set members while resolving key-refs. We need clarification from the WG if such attributes should be counted or not.
Comment 2 Michael Kay 2008-06-21 16:56:05 UTC
We think the spec is clear in this case and the instance is therefore invalid. Decided to leave the test as it is and change the expected result.