/bundles/plugins-trunk/XML/test_data/parentRef/actual_table.rng
Unknown | 38 lines | 35 code | 3 blank | 0 comment | 0 complexity | 90d3a9bdd39f56d93f9286296f4ecb7d MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- <?xml version="1.0" ?>
- <!-- example taken from the RelaxNG Tutorial
- http://www.relaxng.org/tutorial-20011203.html
- Copyright The Organization for the Advancement of Structured Information Standards [OASIS] 2001. All Rights Reserved.
- -->
- <grammar xmlns="http://relaxng.org/ns/structure/1.0">
- <start>
- <element name="doc">
- <zeroOrMore>
- <choice>
- <element name="p">
- <ref name="inline"/>
- </element>
- <grammar>
- <include href="table.rng">
- <define name="cell.content">
- <parentRef name="inline"/>
- </define>
- </include>
- </grammar>
- </choice>
- </zeroOrMore>
- </element>
- </start>
- <define name="inline">
- <zeroOrMore>
- <choice>
- <text/>
- <element name="em">
- <ref name="inline"/>
- </element>
- </choice>
- </zeroOrMore>
- </define>
- </grammar>