|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<xs:schema |
| 4 | + xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 5 | + xmlns="http://www.w3.org/1998/Math/MathML" |
| 6 | + targetNamespace="http://www.w3.org/1998/Math/MathML" |
| 7 | + elementFormDefault="qualified" |
| 8 | + > |
| 9 | + |
| 10 | +<xs:annotation> |
| 11 | + <xs:documentation> |
| 12 | + This is an XML Schema module defining the "math" element of MathML. |
| 13 | + Author: Stéphane Dalmas, INRIA. |
| 14 | + </xs:documentation> |
| 15 | +</xs:annotation> |
| 16 | + |
| 17 | +<!-- The four groups that govern a lot of things --> |
| 18 | + |
| 19 | +<!-- currently very lax. Should be tightened from Chapter 5 --> |
| 20 | + |
| 21 | +<xs:group name="Presentation-expr.class"> |
| 22 | + <xs:choice> |
| 23 | + <xs:group ref="PresExpr.class"/> |
| 24 | + <xs:group ref="ContExpr.class"/> |
| 25 | + </xs:choice> |
| 26 | +</xs:group> |
| 27 | + |
| 28 | +<xs:group name="Content-expr.class"> |
| 29 | + <xs:choice> |
| 30 | + <xs:group ref="ContExpr.class"/> |
| 31 | + <xs:group ref="PresExpr.class"/> |
| 32 | + </xs:choice> |
| 33 | +</xs:group> |
| 34 | + |
| 35 | +<xs:group name="PresExpr.class"> |
| 36 | + <xs:choice> |
| 37 | + <xs:group ref="Presentation-token.class"/> |
| 38 | + <xs:group ref="Presentation-layout.class"/> |
| 39 | + <xs:group ref="Presentation-script.class"/> |
| 40 | + <xs:group ref="Presentation-table.class"/> |
| 41 | + <xs:element ref="mspace"/> |
| 42 | + <xs:element ref="maction"/> |
| 43 | + <xs:element ref="merror"/> |
| 44 | + <xs:element ref="mstyle"/> |
| 45 | + </xs:choice> |
| 46 | +</xs:group> |
| 47 | + |
| 48 | +<xs:group name="ContExpr.class"> |
| 49 | + <xs:choice> |
| 50 | + <xs:group ref="Content-tokens.class"/> |
| 51 | + <xs:group ref="Content-arith.class"/> |
| 52 | + <xs:group ref="Content-functions.class"/> |
| 53 | + <xs:group ref="Content-logic.class"/> |
| 54 | + <xs:group ref="Content-constants.class"/> |
| 55 | + <xs:group ref="Content-sets.class"/> |
| 56 | + <xs:group ref="Content-relations.class"/> |
| 57 | + <xs:group ref="Content-elementary-functions.class"/> |
| 58 | + <xs:group ref="Content-calculus.class"/> |
| 59 | + <xs:group ref="Content-linear-algebra.class"/> |
| 60 | + <xs:group ref="Content-vector-calculus.class"/> |
| 61 | + <xs:group ref="Content-statistics.class"/> |
| 62 | + <xs:group ref="Content-constructs.class"/> |
| 63 | + <xs:element ref="semantics"/> |
| 64 | + </xs:choice> |
| 65 | +</xs:group> |
| 66 | + |
| 67 | +<!-- "math" --> |
| 68 | + |
| 69 | +<xs:attributeGroup name="Browser-interface.attrib"> |
| 70 | + <xs:attribute name="baseline" type="xs:string"/> |
| 71 | + <xs:attribute name="overflow" default="scroll"> |
| 72 | + <xs:simpleType> |
| 73 | + <xs:restriction base="xs:string"> |
| 74 | + <xs:enumeration value="scroll"/> |
| 75 | + <xs:enumeration value="elide"/> |
| 76 | + <xs:enumeration value="truncate"/> |
| 77 | + <xs:enumeration value="scale"/> |
| 78 | + </xs:restriction> |
| 79 | + </xs:simpleType> |
| 80 | + </xs:attribute> |
| 81 | + <xs:attribute name="altimg" type="xs:anyURI"/> |
| 82 | + <xs:attribute name="alttext" type="xs:string"/> |
| 83 | + <xs:attribute name="type" type="xs:string"/> |
| 84 | + <xs:attribute name="name" type="xs:string"/> |
| 85 | + <xs:attribute name="height" type="xs:string"/> |
| 86 | + <xs:attribute name="width" type="xs:string"/> |
| 87 | +</xs:attributeGroup> |
| 88 | + |
| 89 | +<xs:attributeGroup name="math.attlist"> |
| 90 | + <xs:attributeGroup ref="Browser-interface.attrib"/> |
| 91 | + <xs:attribute name="macros" type="xs:string"/> |
| 92 | +<!-- deprecated |
| 93 | + <xs:attribute name="mode" type="xs:string"/> |
| 94 | +--> |
| 95 | + <xs:attribute name="display" default="inline"> |
| 96 | + <xs:simpleType> |
| 97 | + <xs:restriction base="xs:string"> |
| 98 | + <xs:enumeration value="block"/> |
| 99 | + <xs:enumeration value="inline"/> |
| 100 | + </xs:restriction> |
| 101 | + </xs:simpleType> |
| 102 | + </xs:attribute> |
| 103 | + <xs:attributeGroup ref="Common.attrib"/> |
| 104 | +</xs:attributeGroup> |
| 105 | + |
| 106 | +<xs:group name="math.content"> |
| 107 | + <xs:choice> |
| 108 | +<!-- *** This region was not commented out in the original W3C version, |
| 109 | + but has been commented out as the mathml:math element in |
| 110 | + CellML does not allow presentation MathML elements. |
| 111 | + <xs:group ref="PresExpr.class"/> |
| 112 | +*** End of region commented out for CellML *** --> |
| 113 | + <xs:group ref="ContExpr.class"/> |
| 114 | + </xs:choice> |
| 115 | +</xs:group> |
| 116 | + |
| 117 | +<xs:complexType name="math.type"> |
| 118 | + <xs:group ref="math.content" minOccurs="0" maxOccurs="unbounded"/> |
| 119 | + <xs:attributeGroup ref="math.attlist"/> |
| 120 | +</xs:complexType> |
| 121 | + |
| 122 | +<xs:element name="math" type="math.type"/> |
| 123 | + |
| 124 | +</xs:schema> |
| 125 | +<!-- |
| 126 | + Copyright û 2002 World Wide Web Consortium, (Massachusetts Institute |
| 127 | + of Technology, Institut National de Recherche en Informatique et en |
| 128 | + Automatique, Keio University). All Rights Reserved. See |
| 129 | + http://www.w3.org/Consortium/Legal/. |
| 130 | + --> |
0 commit comments