tutor4_2.rng 587 B

12345678910111213141516171819202122232425262728293031323334
  1. <grammar xmlns="http://relaxng.org/ns/structure/1.0">
  2. <start>
  3. <ref name="AddressBook"/>
  4. </start>
  5. <define name="AddressBook">
  6. <element name="addressBook">
  7. <zeroOrMore>
  8. <ref name="Card"/>
  9. </zeroOrMore>
  10. </element>
  11. </define>
  12. <define name="Card">
  13. <element name="card">
  14. <ref name="Name"/>
  15. <ref name="Email"/>
  16. </element>
  17. </define>
  18. <define name="Name">
  19. <element name="name">
  20. <text/>
  21. </element>
  22. </define>
  23. <define name="Email">
  24. <element name="email">
  25. <text/>
  26. </element>
  27. </define>
  28. </grammar>