2 <author>Daniel Veillard</author>
\r
3 <email>daniel@veillard.com</email>
\r
4 <documentation>For libxml2 implementation of Relax NG spec.</documentation>
\r
6 <documentation>Test of node matches</documentation>
\r
9 <element xmlns="http://relaxng.org/ns/structure/1.0">
\r
12 <nsName ns="http://example.org"/>
\r
22 <foo xmlns="http://example.org/"/>
\r
25 <foo xmlns="http://EXAMPLE.ORG"/>
\r
28 <foo xmlns="http://example.org"/>
\r
31 <a:foo xmlns:a="http://example.org"/>
\r
36 <element name="top" xmlns="http://relaxng.org/ns/structure/1.0">
\r
38 <element name="foo" ns="http://example.org">
\r
44 <nsName ns="http://example.org"/>
\r
60 <foo xmlns="http://example.org"/>
\r
61 <bar xmlns="http://example.org"/>
\r
66 <foo xmlns="http://example.org"/>
\r
73 <foo xmlns="http://example.org"/>
\r
78 <foo xmlns="http://example.org"/>
\r
79 <bar xmlns="http://example.org/"/>
\r
84 <bar xmlns="http://example.org/"/>
\r
85 <foo xmlns="http://example.org"/>
\r
91 <documentation>Test of indeterminism</documentation>
\r
94 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
96 <element name="bar">
\r
100 <element name="baz">
\r
130 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
132 <element name="bar">
\r
136 <element name="bar">
\r
166 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
169 <element name="bar">
\r
173 <element name="baz">
\r
204 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
207 <element name="bar">
\r
211 <element name="bar">
\r
242 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
245 <element name="bar">
\r
249 <element name="baz">
\r
288 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
291 <element name="bar">
\r
295 <element name="baz">
\r
299 <element name="baz">
\r
343 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
346 <element name="bar">
\r
350 <element name="bar">
\r
381 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
385 <element name="bar">
\r
388 <element name="baz">
\r
393 <element name="bar">
\r
440 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
442 <element name="bar">
\r
446 <element name="baz">
\r
475 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
477 <element name="bar">
\r
481 <element name="bar">
\r
510 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
513 <element name="bar">
\r
518 <element name="baz">
\r
553 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
556 <element name="bar">
\r
561 <element name="bar">
\r
590 <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0">
\r
594 <element name="bar">
\r
597 <element name="baz">
\r
602 <element name="bar">
\r
657 <element name="list" xmlns="http://relaxng.org/ns/structure/1.0">
\r
659 <element name="label">
\r
663 <element name="opt">
\r
667 <element name="item">
\r
714 <element name="list" xmlns="http://relaxng.org/ns/structure/1.0">
\r
716 <element name="label">
\r
720 <element name="opt">
\r
724 <element name="item">
\r
771 <element name="list" xmlns="http://relaxng.org/ns/structure/1.0">
\r
773 <element name="label">
\r
777 <element name="opt">
\r
780 <element name="opt2">
\r
784 <element name="item">
\r
865 <documentation>Test of grammars merging</documentation>
\r
867 <resource name="dbk.rng">
\r
868 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
872 <define name="p.ext">
\r
878 <ref name="p.ext"/>
\r
889 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
892 <include href="dbk.rng"/>
\r
893 <define name="p.ext" combine="choice">
\r
926 <resource name="dbk.rng">
\r
927 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
931 <define name="p.ext">
\r
937 <ref name="p.ext"/>
\r
953 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
956 <include href="dbk.rng"/>
\r
957 <define name="p.ext" combine="choice">
\r
960 <parentRef name="d"/>
\r
1021 <resource name="dbk.rng">
\r
1022 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
1026 <define name="p.ext">
\r
1030 <element name="p">
\r
1032 <ref name="p.ext"/>
\r
1034 <element name="a">
\r
1041 <element name="c">
\r
1047 <resource name="proof.rng">
\r
1048 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
1053 <element name="d">
\r
1058 <element name="e">
\r
1063 <element name="f">
\r
1070 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
1073 <include href="dbk.rng"/>
\r
1074 <define name="p.ext" combine="choice">
\r
1078 <include href="proof.rng"/>
\r
1079 <start combine="choice">
\r
1083 <element name="b">
\r
1091 <element name="g">
\r
1167 <resource name="dbk.rng">
\r
1168 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
1172 <define name="p.ext">
\r
1176 <element name="p">
\r
1178 <ref name="p.ext"/>
\r
1180 <element name="a">
\r
1187 <element name="c">
\r
1193 <resource name="proof.rng">
\r
1194 <grammar xmlns="http://relaxng.org/ns/structure/1.0"
\r
1195 ns="http://example.org/ns/proofsystem">
\r
1200 <element name="d">
\r
1205 <element name="e">
\r
1210 <element name="f">
\r
1217 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
1220 <include href="dbk.rng"/>
\r
1221 <define name="p.ext" combine="choice">
\r
1225 <include href="proof.rng"/>
\r
1226 <start combine="choice">
\r
1230 <element name="b">
\r
1238 <element name="g">
\r
1263 <p xmlns:p="http://example.org/ns/proofsystem">
\r
1273 <p xmlns:p="http://example.org/ns/proofsystem">
\r
1283 <p xmlns:p="http://example.org/ns/proofsystem">
\r
1316 <p xmlns:p="http://example.org/ns/proofsystem">
\r
1322 <p xmlns:p="http://example.org/ns/proofsystem">
\r
1329 <resource name="ext.rng">
\r
1330 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
1335 <element name="p">
\r
1342 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
\r
1344 <element name="top">
\r
1346 <ref name="include1"/>
\r
1347 <ref name="include2"/>
\r
1351 <define name="include1">
\r
1353 <include href="ext.rng">
\r
1355 <element name="a">
\r
1365 <define name="include2">
\r
1367 <include href="ext.rng">
\r
1369 <element name="b">
\r
1420 <documentation>Test of ID/IDREF</documentation>
\r
1423 <element name="top" xmlns="http://relaxng.org/ns/structure/1.0"
\r
1424 datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
\r
1427 <element name="ref">
\r
1428 <attribute name="id">
\r
1433 <element name="xref">
\r
1434 <attribute name="link">
\r
1435 <data type="IDREF"/>
\r
1449 <xref link="id1"/>
\r
1459 <xref link="id1"/>
\r
1465 <xref link=" id1 "/>
\r
1467 <xref link="id1 "/>
\r
1468 <xref link=" id1"/>
\r
1474 <xref link="id1"/>
\r
1486 <element name="top" xmlns="http://relaxng.org/ns/structure/1.0"
\r
1487 datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
\r
1490 <element name="ref">
\r
1491 <attribute name="id">
\r
1496 <element name="xref">
\r
1497 <attribute name="link">
\r
1498 <data type="IDREFS"/>
\r
1512 <xref link="id1"/>
\r
1522 <xref link="id1"/>
\r
1528 <xref link="id1 id1"/>
\r
1535 <xref link="id1"/>
\r
1541 <xref link="id1 id2"/>
\r
1548 <xref link=" id2 id1 id2 "/>
\r
1555 <xref link="id1 id2"/>
\r
1560 <xref link="id1 id2"/>
\r
1573 <documentation>Test of ENTITY/ENTITIES</documentation>
\r
1576 <element xmlns="http://relaxng.org/ns/structure/1.0" name="doc" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
\r
1577 <data type="ENTITY"/>
\r
1586 <valid dtd=" <!DOCTYPE doc [ <!ENTITY foo SYSTEM 'whatever' NDATA jpeg> ]>">
\r
1589 <valid dtd=" <!DOCTYPE doc [ <!ENTITY foo SYSTEM 'whatever' NDATA jpeg> ]>">
\r
1592 <invalid dtd=" <!DOCTYPE doc [ <!ENTITY foo SYSTEM 'whatever' NDATA jpeg> ]>">
\r
1593 <doc>foo bar</doc>
\r
1598 <element xmlns="http://relaxng.org/ns/structure/1.0" name="doc" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
\r
1599 <data type="ENTITIES"/>
\r
1608 <valid dtd=" <!DOCTYPE doc [ <!ENTITY foo SYSTEM 'whatever' NDATA jpeg> <!ENTITY bar SYSTEM 'whatever' NDATA jpeg> ]>">
\r
1609 <doc> foo bar </doc>
\r
1611 <valid dtd=" <!DOCTYPE doc [ <!ENTITY foo SYSTEM 'whatever' NDATA jpeg> <!ENTITY bar SYSTEM 'whatever' NDATA jpeg> ]>">
\r
1612 <doc> foo bar foo</doc>
\r
1614 <invalid dtd=" <!DOCTYPE doc [ <!ENTITY foo SYSTEM 'whatever' NDATA jpeg>]>">
\r
1615 <doc>foo bar</doc>
\r
1620 <documentation>Test of Mixed</documentation>
\r
1623 <element name="mix" xmlns="http://relaxng.org/ns/structure/1.0">
\r
1627 <element name="a">
\r
1630 <element name="b">
\r
1633 <element name="c">
\r
1639 <element name="d">
\r