Home | History | Annotate | Download | only in relaxng
      1 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
      2 
      3   <define name="inline">
      4     <zeroOrMore>
      5       <ref name="inline.class"/>
      6     </zeroOrMore>
      7   </define>
      8 
      9   <define name="inline.class">
     10     <choice>
     11       <text/>
     12       <element name="bold">
     13 	<ref name="inline"/>
     14       </element>
     15       <element name="italic">
     16 	<ref name="inline"/>
     17       </element>
     18       <element name="code">
     19 	<ref name="inline"/>
     20       </element>
     21       <element name="em">
     22 	<ref name="inline"/>
     23       </element>
     24     </choice>
     25   </define>
     26 
     27   <start>
     28     <element name="doc">
     29       <zeroOrMore>
     30 	<element name="p">
     31 	  <ref name="inline"/>
     32 	</element>
     33       </zeroOrMore>
     34     </element>
     35   </start>
     36 
     37 </grammar>
     38