spec.rng 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!-- $Id: spec.rng,v 1.3 2001/10/23 05:54:24 jjc Exp $ -->
  3. <grammar xmlns="http://relaxng.org/ns/structure/1.0"
  4. datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
  5. xmlns:p="http://relaxng.org/ns/proofsystem">
  6. <start>
  7. <grammar>
  8. <include href="docbook.rng"/>
  9. <define name="synop.class" combine="choice">
  10. <choice>
  11. <parentRef name="rngref"/>
  12. <parentRef name="grammarref"/>
  13. <grammar>
  14. <include href="proofsystem.rng"/>
  15. <start combine="choice">
  16. <ref name="formula"/>
  17. </start>
  18. </grammar>
  19. </choice>
  20. </define>
  21. <define name="tech.char.class" combine="choice">
  22. <parentRef name="terms"/>
  23. </define>
  24. </grammar>
  25. </start>
  26. <define name="rngref">
  27. <element name="rngref">
  28. <attribute name="src">
  29. <data type="anyURI"/>
  30. </attribute>
  31. </element>
  32. </define>
  33. <define name="grammarref">
  34. <element name="grammarref">
  35. <attribute name="src">
  36. <data type="anyURI"/>
  37. </attribute>
  38. </element>
  39. </define>
  40. <define name="terms">
  41. <grammar>
  42. <include href="proofsystem.rng">
  43. <start>
  44. <choice>
  45. <ref name="expr"/>
  46. <ref name="judgement"/>
  47. <ref name="context"/>
  48. </choice>
  49. </start>
  50. </include>
  51. </grammar>
  52. </define>
  53. </grammar>