[b1a51ac1] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!--
|
---|
| 3 | This file is part of DocBook V5.0
|
---|
| 4 |
|
---|
| 5 | Copyright 1992-2008 HaL Computer Systems, Inc.,
|
---|
| 6 | O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
---|
| 7 | Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
---|
| 8 | Organization for the Advancement of Structured Information
|
---|
| 9 | Standards (OASIS).
|
---|
| 10 |
|
---|
| 11 | Release: $Id: math.rnc 8931 2010-10-20 13:29:20Z nwalsh $
|
---|
| 12 |
|
---|
| 13 | Permission to use, copy, modify and distribute the DocBook schema
|
---|
| 14 | and its accompanying documentation for any purpose and without fee
|
---|
| 15 | is hereby granted in perpetuity, provided that the above copyright
|
---|
| 16 | notice and this paragraph appear in all copies. The copyright
|
---|
| 17 | holders make no representation about the suitability of the schema
|
---|
| 18 | for any purpose. It is provided "as is" without expressed or implied
|
---|
| 19 | warranty.
|
---|
| 20 |
|
---|
| 21 | If you modify the DocBook schema in any way, label your schema as a
|
---|
| 22 | variant of DocBook. See the reference documentation
|
---|
| 23 | (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
|
---|
| 24 | for more information.
|
---|
| 25 |
|
---|
| 26 | Please direct all questions, bug reports, or suggestions for changes
|
---|
| 27 | to the docbook@lists.oasis-open.org mailing list. For more
|
---|
| 28 | information, see http://www.oasis-open.org/docbook/.
|
---|
| 29 |
|
---|
| 30 | ======================================================================
|
---|
| 31 | -->
|
---|
| 32 | <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0">
|
---|
| 33 | <start combine="choice">
|
---|
| 34 | <choice>
|
---|
| 35 | <ref name="db.equation"/>
|
---|
| 36 | <ref name="db.informalequation"/>
|
---|
| 37 | </choice>
|
---|
| 38 | </start>
|
---|
| 39 | <define name="db.formal.blocks" combine="choice">
|
---|
| 40 | <ref name="db.equation"/>
|
---|
| 41 | </define>
|
---|
| 42 | <define name="db.informal.blocks" combine="choice">
|
---|
| 43 | <ref name="db.informalequation"/>
|
---|
| 44 | </define>
|
---|
| 45 | <define name="db.math.inlines">
|
---|
| 46 | <ref name="db.inlineequation"/>
|
---|
| 47 | </define>
|
---|
| 48 | <define name="db.domain.inlines" combine="choice">
|
---|
| 49 | <ref name="db.math.inlines"/>
|
---|
| 50 | </define>
|
---|
| 51 | <define name="db.initializer.inlines" combine="choice">
|
---|
| 52 | <ref name="db.mathphrase"/>
|
---|
| 53 | </define>
|
---|
| 54 | <!-- ====================================================================== -->
|
---|
| 55 | <define name="db.equation.content">
|
---|
| 56 | <choice>
|
---|
| 57 | <oneOrMore>
|
---|
| 58 | <ref name="db.mediaobject"/>
|
---|
| 59 | </oneOrMore>
|
---|
| 60 | <oneOrMore>
|
---|
| 61 | <ref name="db.mathphrase"/>
|
---|
| 62 | </oneOrMore>
|
---|
| 63 | </choice>
|
---|
| 64 | </define>
|
---|
| 65 | <define name="db.inlineequation.content">
|
---|
| 66 | <choice>
|
---|
| 67 | <oneOrMore>
|
---|
| 68 | <ref name="db.inlinemediaobject"/>
|
---|
| 69 | </oneOrMore>
|
---|
| 70 | <oneOrMore>
|
---|
| 71 | <ref name="db.mathphrase"/>
|
---|
| 72 | </oneOrMore>
|
---|
| 73 | </choice>
|
---|
| 74 | </define>
|
---|
| 75 | <!-- ====================================================================== -->
|
---|
| 76 | <div>
|
---|
| 77 | <db:refname>equation</db:refname>
|
---|
| 78 | <db:refpurpose>A displayed mathematical equation</db:refpurpose>
|
---|
| 79 | <define name="db.equation.role.attribute">
|
---|
| 80 | <attribute name="role"/>
|
---|
| 81 | </define>
|
---|
| 82 | <define name="db.equation.label.attribute">
|
---|
| 83 | <ref name="db.label.attribute"/>
|
---|
| 84 | </define>
|
---|
| 85 | <define name="db.equation.attlist">
|
---|
| 86 | <interleave>
|
---|
| 87 | <optional>
|
---|
| 88 | <ref name="db.equation.role.attribute"/>
|
---|
| 89 | </optional>
|
---|
| 90 | <ref name="db.common.attributes"/>
|
---|
| 91 | <ref name="db.common.linking.attributes"/>
|
---|
| 92 | <optional>
|
---|
| 93 | <ref name="db.equation.label.attribute"/>
|
---|
| 94 | </optional>
|
---|
| 95 | <optional>
|
---|
| 96 | <ref name="db.pgwide.attribute"/>
|
---|
| 97 | </optional>
|
---|
| 98 | <optional>
|
---|
| 99 | <ref name="db.floatstyle.attribute"/>
|
---|
| 100 | </optional>
|
---|
| 101 | </interleave>
|
---|
| 102 | </define>
|
---|
| 103 | <define name="db.equation.info">
|
---|
| 104 | <ref name="db._info.title.only"/>
|
---|
| 105 | </define>
|
---|
| 106 | <define name="db.equation">
|
---|
| 107 | <element name="equation">
|
---|
| 108 | <ref name="db.equation.attlist"/>
|
---|
| 109 | <ref name="db.equation.info"/>
|
---|
| 110 | <optional>
|
---|
| 111 | <ref name="db.alt"/>
|
---|
| 112 | </optional>
|
---|
| 113 | <ref name="db.equation.content"/>
|
---|
| 114 | <optional>
|
---|
| 115 | <ref name="db.caption"/>
|
---|
| 116 | </optional>
|
---|
| 117 | </element>
|
---|
| 118 | </define>
|
---|
| 119 | </div>
|
---|
| 120 | <!-- ====================================================================== -->
|
---|
| 121 | <div>
|
---|
| 122 | <db:refname>informalequation</db:refname>
|
---|
| 123 | <db:refpurpose>A displayed mathematical equation without a title</db:refpurpose>
|
---|
| 124 | <define name="db.informalequation.role.attribute">
|
---|
| 125 | <attribute name="role"/>
|
---|
| 126 | </define>
|
---|
| 127 | <define name="db.informalequation.attlist">
|
---|
| 128 | <interleave>
|
---|
| 129 | <optional>
|
---|
| 130 | <ref name="db.informalequation.role.attribute"/>
|
---|
| 131 | </optional>
|
---|
| 132 | <ref name="db.common.attributes"/>
|
---|
| 133 | <ref name="db.common.linking.attributes"/>
|
---|
| 134 | </interleave>
|
---|
| 135 | </define>
|
---|
| 136 | <define name="db.informalequation.info">
|
---|
| 137 | <ref name="db._info.title.forbidden"/>
|
---|
| 138 | </define>
|
---|
| 139 | <define name="db.informalequation">
|
---|
| 140 | <element name="informalequation">
|
---|
| 141 | <ref name="db.informalequation.attlist"/>
|
---|
| 142 | <ref name="db.informalequation.info"/>
|
---|
| 143 | <optional>
|
---|
| 144 | <ref name="db.alt"/>
|
---|
| 145 | </optional>
|
---|
| 146 | <ref name="db.equation.content"/>
|
---|
| 147 | <optional>
|
---|
| 148 | <ref name="db.caption"/>
|
---|
| 149 | </optional>
|
---|
| 150 | </element>
|
---|
| 151 | </define>
|
---|
| 152 | </div>
|
---|
| 153 | <!-- ====================================================================== -->
|
---|
| 154 | <div>
|
---|
| 155 | <db:refname>inlineequation</db:refname>
|
---|
| 156 | <db:refpurpose>A mathematical equation or expression occurring inline</db:refpurpose>
|
---|
| 157 | <define name="db.inlineequation.role.attribute">
|
---|
| 158 | <attribute name="role"/>
|
---|
| 159 | </define>
|
---|
| 160 | <define name="db.inlineequation.attlist">
|
---|
| 161 | <interleave>
|
---|
| 162 | <optional>
|
---|
| 163 | <ref name="db.inlineequation.role.attribute"/>
|
---|
| 164 | </optional>
|
---|
| 165 | <ref name="db.common.attributes"/>
|
---|
| 166 | <ref name="db.common.linking.attributes"/>
|
---|
| 167 | </interleave>
|
---|
| 168 | </define>
|
---|
| 169 | <define name="db.inlineequation">
|
---|
| 170 | <element name="inlineequation">
|
---|
| 171 | <ref name="db.inlineequation.attlist"/>
|
---|
| 172 | <optional>
|
---|
| 173 | <ref name="db.alt"/>
|
---|
| 174 | </optional>
|
---|
| 175 | <ref name="db.inlineequation.content"/>
|
---|
| 176 | </element>
|
---|
| 177 | </define>
|
---|
| 178 | </div>
|
---|
| 179 | <!-- ====================================================================== -->
|
---|
| 180 | <div>
|
---|
| 181 | <db:refname>mathphrase</db:refname>
|
---|
| 182 | <db:refpurpose>A mathematical phrase that can be represented with ordinary text and a small amount of markup</db:refpurpose>
|
---|
| 183 | <define name="db.mathphrase.role.attribute">
|
---|
| 184 | <attribute name="role"/>
|
---|
| 185 | </define>
|
---|
| 186 | <define name="db.mathphrase.attlist">
|
---|
| 187 | <interleave>
|
---|
| 188 | <optional>
|
---|
| 189 | <ref name="db.mathphrase.role.attribute"/>
|
---|
| 190 | </optional>
|
---|
| 191 | <ref name="db.common.attributes"/>
|
---|
| 192 | <ref name="db.common.linking.attributes"/>
|
---|
| 193 | </interleave>
|
---|
| 194 | </define>
|
---|
| 195 | <define name="db.mathphrase">
|
---|
| 196 | <element name="mathphrase">
|
---|
| 197 | <ref name="db.mathphrase.attlist"/>
|
---|
| 198 | <zeroOrMore>
|
---|
| 199 | <choice>
|
---|
| 200 | <ref name="db._text"/>
|
---|
| 201 | <ref name="db.ubiq.inlines"/>
|
---|
| 202 | <ref name="db._emphasis"/>
|
---|
| 203 | </choice>
|
---|
| 204 | </zeroOrMore>
|
---|
| 205 | </element>
|
---|
| 206 | </define>
|
---|
| 207 | </div>
|
---|
| 208 | </grammar>
|
---|