tutor9_8.rng 772 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. </choice>
  17. </define>
  18. <start>
  19. <element name="doc">
  20. <zeroOrMore>
  21. <element name="p">
  22. <ref name="inline"/>
  23. </element>
  24. </zeroOrMore>
  25. </element>
  26. </start>
  27. <define name="inline.class" combine="choice">
  28. <choice>
  29. <element name="code">
  30. <ref name="inline"/>
  31. </element>
  32. <element name="em">
  33. <ref name="inline"/>
  34. </element>
  35. </choice>
  36. </define>
  37. </grammar>