summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/serialization/qxmlstream/XML-Test-Suite/xmlconf/ibm/invalid/P56/ibm56i08.xml
blob: 2538a2c7be4876bbf30131cfd1d7763a5f92e5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml  version="1.0"?>
<!-- validity constraint check for Production 56(Negative Test)-->
<!DOCTYPE test
 [
 <!ELEMENT test ANY>
 <!ELEMENT id EMPTY>
 <!ELEMENT idref EMPTY>
 <!ATTLIST id UniqueName ID #REQUIRED>
 <!ATTLIST idref reference IDREF #IMPLIED>
 ]>
<test>
<id UniqueName = "AC456"></id>
<idref reference = "BC456"></idref>
Negative test for validity constraint of IDREF.
In an attribute decl, values of type IDREF match the name production and
IDREF value does not match the value assigned to any ID attribute somewhere
in the XML document.
</test>