list.rng 574 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <grammar
  3. xmlns="http://relaxng.org/ns/structure/1.0"
  4. xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
  5. datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  6. <define name="pattern1">
  7. <data type="string">
  8. <param name="pattern">-?([0-9]+(\.[0-9]*)?|\.[0-9]+)</param>
  9. </data>
  10. </define>
  11. <start>
  12. <element name="elem1">
  13. <attribute name="attr1">
  14. <list>
  15. <ref name="pattern1"/>
  16. </list>
  17. </attribute>
  18. </element>
  19. </start>
  20. </grammar>