math.xsd 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of DocBook V5.0
  4. Copyright 1992-2008 HaL Computer Systems, Inc.,
  5. O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
  6. Corporation, Norman Walsh, Sun Microsystems, Inc., and the
  7. Organization for the Advancement of Structured Information
  8. Standards (OASIS).
  9. Release: $Id: math.rnc 8931 2010-10-20 13:29:20Z nwalsh $
  10. Permission to use, copy, modify and distribute the DocBook schema
  11. and its accompanying documentation for any purpose and without fee
  12. is hereby granted in perpetuity, provided that the above copyright
  13. notice and this paragraph appear in all copies. The copyright
  14. holders make no representation about the suitability of the schema
  15. for any purpose. It is provided "as is" without expressed or implied
  16. warranty.
  17. If you modify the DocBook schema in any way, label your schema as a
  18. variant of DocBook. See the reference documentation
  19. (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
  20. for more information.
  21. Please direct all questions, bug reports, or suggestions for changes
  22. to the docbook@lists.oasis-open.org mailing list. For more
  23. information, see http://www.oasis-open.org/docbook/.
  24. ======================================================================
  25. -->
  26. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://docbook.org/ns/docbook" xmlns:dbs="http://docbook.org/ns/docbook-slides" xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  27. <xs:import namespace="http://docbook.org/ns/docbook-slides" schemaLocation="slides.xsd"/>
  28. <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
  29. <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
  30. <xs:element name="db.math.inlines" abstract="true">
  31. <xs:complexType>
  32. <xs:sequence>
  33. <xs:element minOccurs="0" ref="db:alt"/>
  34. <xs:group ref="db:db.inlineequation.content"/>
  35. </xs:sequence>
  36. <xs:attributeGroup ref="db:db.inlineequation.attlist"/>
  37. </xs:complexType>
  38. </xs:element>
  39. <xs:group name="db.initializer.inlines">
  40. <xs:choice>
  41. <xs:element ref="db:mathphrase"/>
  42. <xs:element ref="db:db.markup.inlines"/>
  43. <xs:group ref="db:db._text"/>
  44. </xs:choice>
  45. </xs:group>
  46. <!-- ====================================================================== -->
  47. <xs:group name="db.equation.content">
  48. <xs:choice>
  49. <xs:choice>
  50. <xs:element maxOccurs="unbounded" ref="db:mediaobject"/>
  51. <xs:element maxOccurs="unbounded" ref="db:mathphrase"/>
  52. </xs:choice>
  53. <xs:group maxOccurs="unbounded" ref="dbs:db._any.mml"/>
  54. </xs:choice>
  55. </xs:group>
  56. <xs:group name="db.inlineequation.content">
  57. <xs:choice>
  58. <xs:choice>
  59. <xs:element maxOccurs="unbounded" ref="db:inlinemediaobject"/>
  60. <xs:element maxOccurs="unbounded" ref="db:mathphrase"/>
  61. </xs:choice>
  62. <xs:group maxOccurs="unbounded" ref="dbs:db._any.mml"/>
  63. </xs:choice>
  64. </xs:group>
  65. <!-- ====================================================================== -->
  66. <xs:attributeGroup name="db.equation.role.attribute">
  67. <xs:attribute name="role" use="required"/>
  68. </xs:attributeGroup>
  69. <xs:attributeGroup name="db.equation.label.attribute">
  70. <xs:attributeGroup ref="db:db.label.attribute"/>
  71. </xs:attributeGroup>
  72. <xs:attributeGroup name="db.equation.attlist">
  73. <xs:attribute name="role"/>
  74. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  75. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  76. <xs:attribute name="label"/>
  77. <xs:attribute name="pgwide" type="db:db.pgwide.enumeration"/>
  78. <xs:attribute name="floatstyle"/>
  79. </xs:attributeGroup>
  80. <xs:group name="db.equation.info">
  81. <xs:sequence>
  82. <xs:group ref="db:db._info.title.only"/>
  83. </xs:sequence>
  84. </xs:group>
  85. <xs:element name="equation">
  86. <xs:complexType>
  87. <xs:sequence>
  88. <xs:group ref="db:db.equation.info"/>
  89. <xs:element minOccurs="0" ref="db:alt"/>
  90. <xs:group ref="db:db.equation.content"/>
  91. <xs:group minOccurs="0" ref="db:db.caption"/>
  92. </xs:sequence>
  93. <xs:attributeGroup ref="db:db.equation.attlist"/>
  94. </xs:complexType>
  95. </xs:element>
  96. <!-- ====================================================================== -->
  97. <xs:attributeGroup name="db.informalequation.role.attribute">
  98. <xs:attribute name="role" use="required"/>
  99. </xs:attributeGroup>
  100. <xs:attributeGroup name="db.informalequation.attlist">
  101. <xs:attribute name="role"/>
  102. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  103. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  104. </xs:attributeGroup>
  105. <xs:group name="db.informalequation.info">
  106. <xs:sequence>
  107. <xs:group ref="db:db._info.title.forbidden"/>
  108. </xs:sequence>
  109. </xs:group>
  110. <xs:element name="informalequation">
  111. <xs:complexType>
  112. <xs:sequence>
  113. <xs:group ref="db:db.informalequation.info"/>
  114. <xs:element minOccurs="0" ref="db:alt"/>
  115. <xs:group ref="db:db.equation.content"/>
  116. <xs:group minOccurs="0" ref="db:db.caption"/>
  117. </xs:sequence>
  118. <xs:attributeGroup ref="db:db.informalequation.attlist"/>
  119. </xs:complexType>
  120. </xs:element>
  121. <!-- ====================================================================== -->
  122. <xs:attributeGroup name="db.inlineequation.role.attribute">
  123. <xs:attribute name="role" use="required"/>
  124. </xs:attributeGroup>
  125. <xs:attributeGroup name="db.inlineequation.attlist">
  126. <xs:attribute name="role"/>
  127. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  128. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  129. </xs:attributeGroup>
  130. <xs:element name="inlineequation" substitutionGroup="db:db.math.inlines"/>
  131. <!-- ====================================================================== -->
  132. <xs:attributeGroup name="db.mathphrase.role.attribute">
  133. <xs:attribute name="role" use="required"/>
  134. </xs:attributeGroup>
  135. <xs:attributeGroup name="db.mathphrase.attlist">
  136. <xs:attribute name="role"/>
  137. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  138. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  139. </xs:attributeGroup>
  140. <xs:element name="mathphrase">
  141. <xs:complexType mixed="true">
  142. <xs:choice minOccurs="0" maxOccurs="unbounded">
  143. <xs:group ref="db:db._text"/>
  144. <xs:group ref="db:db.ubiq.inlines"/>
  145. <xs:group ref="db:db._emphasis"/>
  146. </xs:choice>
  147. <xs:attributeGroup ref="db:db.mathphrase.attlist"/>
  148. </xs:complexType>
  149. </xs:element>
  150. </xs:schema>