summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/ibm/valid/P56/ibm56v07.xml
blob: d238abc2fec4c929606e062d1c6d8870f6f96a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml  version="1.0"?>
<!-- validity constraint check for Production 56(Positive Test)-->
<!DOCTYPE test
 [
 <!ELEMENT test ANY>
 <!ELEMENT id1 EMPTY>
 <!ELEMENT id2 EMPTY>
 <!ELEMENT idref EMPTY>
 <!ATTLIST id1 UniqueName ID #REQUIRED>
 <!ATTLIST id2 UName ID #IMPLIED>
 <!ATTLIST idref reference IDREFS #IMPLIED>
 ]>
<test>
<id1 UniqueName = "AC456"></id1>
<id2 UName = "Q123"></id2>
<idref reference = "AC456 Q123"></idref>
Positive test for validity constraint of IDREFS.
In an attribute decl, values of type IDREFS match tha name production
and the IDREFS value matches the values assigned to an ID attributes somewhere
in the XML document.
</test>