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 4060 - IdentityConstraint test idH031 - complex type with simple content
Summary: IdentityConstraint test idH031 - complex type with simple content
Status: ASSIGNED
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: awaiting resolution of dependency
Keywords: disputedSpec
Depends on: 5780
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-09 23:42 UTC by Michael Kay
Modified: 2010-04-05 15:21 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2006-12-09 23:42:20 UTC
In the Microsoft IdentityConstraint test idH031, the node selected by the field selector in an identity constraint has a complex type with simple content, and the test considers this to be valid.

The specification requires that the field has a simple type. See Validation Rule: Identity-constraint Satisfied, clause 3.

This is arguably an error in the spec, but the spec does say quite clearly that it must be a simple type, which rules out a complex type with simple content.
Comment 1 Michael Kay 2006-12-09 23:47:11 UTC
Also applies to

idK011
idL076
idL077
Comment 2 Michael Champion 2007-01-20 17:26:56 UTC
It was discussed on the xmlschema-dev forum at http://lists.w3.org/Archives/Public/xmlschema-dev/2003Feb/0025.html and the conclusion was that identity constraints are supposed to work on SimpleContent as well.

[for Zafar Abbas]
Comment 3 Michael Kay 2008-06-21 16:52:22 UTC
Noted that this has changed in 1.1 to allow a complex type with simple content.

Bug #5780 has been raised against the 1.0 spec.

We will leave this bug open making it dependent on 5780.
Comment 4 David Ezell 2010-02-26 16:26:47 UTC
WG decided:
Duplicate idH031, mark the duplicate stable and 1.1 only. (Action to HT.)
Comment 5 David Ezell 2010-02-26 16:28:26 UTC
WG decided (addendum):

take tests:
idH031
idK011
idL076
idL077

create a duplicate of each, and mark the duplicate stable and 1.1 only.
(Action to HT.)
Comment 6 Henry S. Thompson 2010-04-05 15:21:24 UTC
1.1-only copies created, with names idH031a, idK011a. idL076a, idL077a
Comment 7 Henry S. Thompson 2010-04-05 15:21:31 UTC
Made stable 1.1-only copies named idH031a, idK011a, idL076a, idL077a