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 12014 - ID and IDREF appearing in complex type with simple content
Summary: ID and IDREF appearing in complex type with simple content
Status: CLOSED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Saxon tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 20:41 UTC by Sandy Gao
Modified: 2011-10-21 16:38 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2011-02-08 20:41:06 UTC
For test group id008 in id.testSet, the schema id008.xsd has a comment:

    <!-- A complex type with simple content of type ID or IDREF is not treated as an ID or IDREF value -->

Which is not true. Consequently the tests id008.v02.xml and id008.v03.xml are expected to be valid, but should be invalid.

id008.v02.xml (should be "duplicate ID for bbb"):
<doc>
  <node><id>aaa</id><idref>bbb</idref></node>
  <node><id>bbb</id><idref>aaa</idref></node> 
  <node><id>bbb</id><idref>aaa</idref></node>     
</doc>

id008.v03.xml (should be "unresolved IDREF for ddd""):
<doc>
  <node><id>aaa</id><idref>bbb</idref></node>
  <node><id>bbb</id><idref>aaa</idref></node> 
  <node><id>ccc</id><idref>ddd</idref></node>     
</doc>
Comment 1 C. M. Sperberg-McQueen 2011-07-29 14:03:26 UTC
The WG agreed today that the expected test results should be changed; they have now been changed.