tutor9_9.rng 682 B

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