tutor4_3.rng 594 B

123456789101112131415161718192021222324252627
  1. <grammar xmlns="http://relaxng.org/ns/structure/1.0">
  2. <start>
  3. <element name="p">
  4. <ref name="inline"/>
  5. </element>
  6. </start>
  7. <define name="inline">
  8. <zeroOrMore>
  9. <choice>
  10. <text/>
  11. <element name="bold">
  12. <ref name="inline"/>
  13. </element>
  14. <element name="italic">
  15. <ref name="inline"/>
  16. </element>
  17. <element name="span">
  18. <optional>
  19. <attribute name="style"/>
  20. </optional>
  21. <ref name="inline"/>
  22. </element>
  23. </choice>
  24. </zeroOrMore>
  25. </define>
  26. </grammar>