tutor9_3.rng 771 B

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