imported DTD compatibility test suite
[cxml-rng-test.git] / dtd-split / 028 / c.rng
blob3c28a422ccdf3aff5c37f419f1711f070ca153a6
1 <?xml version="1.0" encoding="utf-8"?>
2 <grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:foo="foo">
3 <start>
4 <element name="foo">
5 <ref name="body"/>
6 </element>
7 </start>
9 <define name="body">
10 <!-- after the simplification, this corresponds to
11 <optional><attribute/></optional> -->
12 <interleave>
13 <ref name="empty"/>
14 <group>
15 <ref name="empty"/>
16 <choice>
17 <ref name="empty"/>
18 <attribute name="bar" a:defaultValue="t512">
19 <data type="ID" datatypeLibrary="http://relaxng.org/ns/compatibility/datatypes/1.0"/>
20 </attribute>
21 </choice>
22 <ref name="empty"/>
23 </group>
24 <ref name="empty"/>
25 </interleave>
26 </define>
28 <define name="empty">
29 <choice>
30 <notAllowed/>
31 <oneOrMore>
32 <empty/>
33 </oneOrMore>
34 </choice>
35 </define>
36 </grammar>