rngtest9.rng 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <element rngui:version="1.2" name="element" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
  2. <attribute name="name" rngui:readonly="true" rngui:default="arguments">
  3. <data type="string"/>
  4. </attribute>
  5. <choice>
  6. <zeroOrMore rngui:label="Create Unnamed Element">
  7. <element name="element">
  8. <element name="anyname"/>
  9. <element name="data">
  10. <attribute name="type" rngui:label="Type">
  11. <choice>
  12. <value>integer</value>
  13. <value>string</value>
  14. </choice>
  15. </attribute>
  16. </element>
  17. </element>
  18. </zeroOrMore>
  19. <zeroOrMore rngui:label="Create Named Element">
  20. <element name="element">
  21. <attribute name="name" rngui:label="Name">
  22. <data type="string"/>
  23. </attribute>
  24. <element name="data">
  25. <attribute name="type" rngui:label="Type">
  26. <choice>
  27. <value>integer</value>
  28. <value>string</value>
  29. </choice>
  30. </attribute>
  31. </element>
  32. </element>
  33. </zeroOrMore>
  34. </choice>
  35. </element>