[Bug 12014] New: ID and IDREF appearing in complex type with simple content

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

           Summary: ID and IDREF appearing in complex type with simple
                    content
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Saxon tests
        AssignedTo: cmsmcq@blackmesatech.com
        ReportedBy: sandygao@ca.ibm.com
         QAContact: public-xml-schema-testsuite@w3.org


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>

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 8 February 2011 20:41:08 UTC