[15c7d39] | 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: mathml.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:mml="http://www.w3.org/1998/Math/MathML" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" 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 | <define name="db.equation.content" combine="choice">
|
---|
| 34 | <oneOrMore>
|
---|
| 35 | <ref name="db._any.mml"/>
|
---|
| 36 | </oneOrMore>
|
---|
| 37 | </define>
|
---|
| 38 | <define name="db.inlineequation.content" combine="choice">
|
---|
| 39 | <oneOrMore>
|
---|
| 40 | <ref name="db._any.mml"/>
|
---|
| 41 | </oneOrMore>
|
---|
| 42 | </define>
|
---|
| 43 | <define name="db.imageobject.content" combine="choice">
|
---|
| 44 | <ref name="db.imagedata.mathml"/>
|
---|
| 45 | </define>
|
---|
| 46 | <!-- ============================================================ -->
|
---|
| 47 | <div>
|
---|
| 48 | <db:refname>imagedata</db:refname>
|
---|
| 49 | <db:refpurpose>A MathML expression in a media object</db:refpurpose>
|
---|
| 50 | <define name="db.imagedata.mathml.role.attribute">
|
---|
| 51 | <attribute name="role"/>
|
---|
| 52 | </define>
|
---|
| 53 | <define name="db.imagedata.mathml.attlist">
|
---|
| 54 | <interleave>
|
---|
| 55 | <optional>
|
---|
| 56 | <ref name="db.imagedata.mathml.role.attribute"/>
|
---|
| 57 | </optional>
|
---|
| 58 | <ref name="db.common.attributes"/>
|
---|
| 59 | <optional>
|
---|
| 60 | <attribute name="format">
|
---|
| 61 | <db:refpurpose>Specifies that the format of the data is MathML</db:refpurpose>
|
---|
| 62 | <value>mathml</value>
|
---|
| 63 | <a:documentation>Specifies MathML.</a:documentation>
|
---|
| 64 | </attribute>
|
---|
| 65 | </optional>
|
---|
| 66 | <optional>
|
---|
| 67 | <ref name="db.imagedata.align.attribute"/>
|
---|
| 68 | </optional>
|
---|
| 69 | <optional>
|
---|
| 70 | <ref name="db.imagedata.valign.attribute"/>
|
---|
| 71 | </optional>
|
---|
| 72 | <optional>
|
---|
| 73 | <ref name="db.imagedata.width.attribute"/>
|
---|
| 74 | </optional>
|
---|
| 75 | <optional>
|
---|
| 76 | <ref name="db.imagedata.contentwidth.attribute"/>
|
---|
| 77 | </optional>
|
---|
| 78 | <optional>
|
---|
| 79 | <ref name="db.imagedata.scalefit.attribute"/>
|
---|
| 80 | </optional>
|
---|
| 81 | <optional>
|
---|
| 82 | <ref name="db.imagedata.scale.attribute"/>
|
---|
| 83 | </optional>
|
---|
| 84 | <optional>
|
---|
| 85 | <ref name="db.imagedata.depth.attribute"/>
|
---|
| 86 | </optional>
|
---|
| 87 | <optional>
|
---|
| 88 | <ref name="db.imagedata.contentdepth.attribute"/>
|
---|
| 89 | </optional>
|
---|
| 90 | </interleave>
|
---|
| 91 | </define>
|
---|
| 92 | <define name="db.imagedata.mathml.info">
|
---|
| 93 | <ref name="db._info.title.forbidden"/>
|
---|
| 94 | </define>
|
---|
| 95 | <define name="db.imagedata.mathml">
|
---|
| 96 | <element name="imagedata">
|
---|
| 97 | <ref name="db.imagedata.mathml.attlist"/>
|
---|
| 98 | <ref name="db.imagedata.mathml.info"/>
|
---|
| 99 | <oneOrMore>
|
---|
| 100 | <ref name="db._any.mml"/>
|
---|
| 101 | </oneOrMore>
|
---|
| 102 | </element>
|
---|
| 103 | </define>
|
---|
| 104 | </div>
|
---|
| 105 | <!-- ============================================================ -->
|
---|
| 106 | <div>
|
---|
| 107 | <db:refname>mml:*</db:refname>
|
---|
| 108 | <db:refpurpose>Any element from the MathML namespace</db:refpurpose>
|
---|
| 109 | <define name="db._any.mml">
|
---|
| 110 | <element>
|
---|
| 111 | <nsName ns="http://www.w3.org/1998/Math/MathML"/>
|
---|
| 112 | <zeroOrMore>
|
---|
| 113 | <choice>
|
---|
| 114 | <ref name="db._any.attribute"/>
|
---|
| 115 | <text/>
|
---|
| 116 | <ref name="db._any"/>
|
---|
| 117 | </choice>
|
---|
| 118 | </zeroOrMore>
|
---|
| 119 | </element>
|
---|
| 120 | </define>
|
---|
| 121 | </div>
|
---|
| 122 | </grammar>
|
---|