tutor9_4.rng 730 B

123456789101112131415161718192021222324252627282930313233343536
  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">
  11. <choice>
  12. <element name="bold">
  13. <ref name="inline"/>
  14. </element>
  15. <element name="italic">
  16. <ref name="inline"/>
  17. </element>
  18. </choice>
  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>