This repository has been archived by the owner on Jan 3, 2020. It is now read-only.
forked from w3c/mathml.old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appendixa.xml
1591 lines (1252 loc) · 113 KB
/
appendixa.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html
SYSTEM "mathml.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Parsing MathML</title>
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" />
<style type="text/css">
/** Table of Contents taken from html 5.2 spec
stop flicker in toc **/
.toc a {
/* More spacing; use padding to make it part of the click target. */
padding-top: 0.1rem;
/* Larger, more consistently-sized click target */
display: block;
/* Reverse color scheme */
color: black;
border-color: #3980B5;
border-bottom-width: 3px !important;
margin-bottom: 0px !important;
}
.egmeta {
color:#5555AA;font-style:italic;font-family:serif;font-weight:bold;
}
div.graphic{margin-left:2em}
table.syntax {
font-size: 75%;
background-color: #DDDDDD;
border: thin solid;
}
table.syntax td {
border: solid thin;
}
table.syntax th {
text-align: left;
}
table.attributes td { padding-left:0.5em; padding-right:0.5em; border: solid thin; }
table.attributes td.attname { white-space:nowrap; vertical-align:top;}
table.attributes td.attdesc { background-color:#F0F0FF; padding-left:2em; padding-right:2em}
th.uname {font-size: 50%; text-align:left;}
code { font-family: monospace; }
div.constraint,
div.issue,
div.note,
div.notice { margin-left: 2em; }
li p { margin-top: 0.3em;
margin-bottom: 0.3em; }
div.exampleInner pre { margin-left: 1em;
margin-top: 0em; margin-bottom: 0em}
div.exampleOuter {border: 4px double gray;
margin: 0em; padding: 0em}
div.exampleInner { background-color: #d5dee3;
border-top-width: 4px;
border-top-style: double;
border-top-color: #d3d3d3;
border-bottom-width: 4px;
border-bottom-style: double;
border-bottom-color: #d3d3d3;
padding: 4px; margin: 0em }
div.exampleWrapper { margin: 4px }
div.exampleHeader { font-weight: bold;
margin: 4px}
a.mainindex {font-weight: bold;}
li.sitem {list-style-type: none;}
.error { color: red }
div.mathml-example {border:solid thin black;
padding: 0.5em;
margin: 0.5em 0 0.5em 0;
}
div.strict-mathml-example {border:solid thin black;
padding: 0.5em;
margin: 0.5em 0 0.5em 0;
}
div.strict-mathml-example h5 {
margin-top: -0.3em;
margin-bottom: -0.5em;}
var.meta {background-color:green}
var.transmeta {background-color:red}
pre.mathml {padding: 0.5em;
background-color: #FFFFDD;}
pre.mathml-fragment {padding: 0.5em;
background-color: #FFFFDD;}
pre.strict-mathml {padding: 0.5em;
background-color: #FFFFDD;}
span.uname {color:#999900;font-size:75%;font-family:sans-serif;}
.minitoc { border-style: solid;
border-color: #0050B2;
border-width: 1px ;
padding: 0.3em;}
.attention { border-style: solid;
border-width: 1px ;
color: #5D0091;
background: #F9F5DE;
border-color: red;
margin-left: 1em;
margin-right: 1em;
margin-top: 0.25em;
margin-bottom: 0.25em; }
.attribute-Name { background: #F9F5C0; }
.method-Name { background: #C0C0F9; }
.IDL-definition { border-style: solid;
border-width: 1px ;
color: #001000;
background: #E0FFE0;
border-color: #206020;
margin-left: 1em;
margin-right: 1em;
margin-top: 0.25em;
margin-bottom: 0.25em; }
.baseline {vertical-align: baseline}
#eqnoc1 {width: 10%}
#eqnoc2 {width: 80%; text-align: center; }
#eqnoc3 {width: 10%; text-align: right; }
div.div1 {margin-bottom: 1em;}
.h3style {
text-align: left;
font-family: sans-serif;
font-weight: normal;
color: #0050B2;
font-size: 125%;
}
h4 { text-align: left;
font-family: sans-serif;
font-weight: normal;
color: #0050B2; }
h5 { text-align: left;
font-family: sans-serif;
font-weight: bold;
color: #0050B2; }
th {background: #E0FFE0;}
p, blockquote, h4 { font-family: sans-serif; }
dt, dd, dl, ul, li { font-family: sans-serif; }
pre, code { font-family: monospace }
a.termref {
text-decoration: none;
color: black;
}
.mathml-render {
font-family: serif;
font-size: 130%;
border: solid 4px green;
padding-left: 1em;
padding-right: 1em;
}
</style>
<link rel="stylesheet" type="text/css" href="https://www.w3.org/StyleSheets/TR/2016/W3C-ED.css" /><script src="//www.w3.org/scripts/TR/2016/fixup.js"> </script></head>
<body>
<h1><a id="parsing"></a>A Parsing MathML</h1>
<!-- TOP NAVIGATION BAR -->
<nav id="toc">
<ol class="toc">
<li><a href="Overview.xml"><span class="secno"></span> Mathematical Markup Language (MathML) Version 4.0</a></li>
<li><a href="chapter7.xml"><span class="secno">7 </span> Characters, Entities and Fonts</a></li>
<li><a href="appendixb.xml"><span class="secno">B </span> Media Types Registrations</a></li>
<li><a href="appendixa.xml"><span class="secno">A </span> Parsing MathML</a>
<ol class="toc">
<li><a href="appendixa.xml#parsing.wellformed"><span class="secno">A.1 </span> Use of MathML as Well-Formed
XML</a>
</li>
<li><a href="appendixa.xml#parsing.usingrnc"><span class="secno">A.2 </span> Using the RelaxNG Schema for MathML3</a>
<ol class="toc">
<li><a href="appendixa.xml#parsing.rnc.full"><span class="secno">A.2.1 </span> Full MathML</a>
</li>
<li><a href="appendixa.xml#parsing.rnc.common"><span class="secno">A.2.2 </span> Elements Common to Presentation and Content MathML</a>
</li>
<li><a href="appendixa.xml#parsing.rnc.pres"><span class="secno">A.2.3 </span> The Grammar for Presentation MathML</a>
</li>
<li><a href="appendixa.xml#parsing.rnc.strict"><span class="secno">A.2.4 </span> The Grammar for Strict Content MathML3</a>
</li>
<li><a href="appendixa.xml#parsing.rnc.content"><span class="secno">A.2.5 </span> The Grammar for Content MathML</a>
</li>
<li><a href="appendixa.xml#parsing.rnc.module"><span class="secno">A.2.6 </span> MathML as a module in a RelaxNG Schema</a>
</li>
</ol>
</li>
<li><a href="appendixa.xml#parsing.usingdtd"><span class="secno">A.3 </span> Using the MathML DTD</a>
<ol class="toc">
<li><a href="appendixa.xml#interf.validation"><span class="secno">A.3.1 </span> Document Validation Issues</a>
</li>
<li><a href="appendixa.xml#id.A.3.2"><span class="secno">A.3.2 </span> Attribute values in the MathML DTD</a>
</li>
<li><a href="appendixa.xml#parsing.doctype"><span class="secno">A.3.3 </span> DOCTYPE declaration for MathML</a>
</li>
</ol>
</li>
<li><a href="appendixa.xml#parsing.usingxsd"><span class="secno">A.4 </span> Using the MathML XML Schema</a>
<ol class="toc">
<li><a href="appendixa.xml#parsing.schemalocation"><span class="secno">A.4.1 </span> Associating the MathML schema with MathML fragments</a>
</li>
</ol>
</li>
<li><a href="appendixa.xml#parsing.mml.xhtml"><span class="secno">A.5 </span> Parsing MathML in XHTML</a>
</li>
<li><a href="appendixa.xml#parsing.mml.html"><span class="secno">A.6 </span> Parsing MathML in HTML</a>
</li>
</ol>
</li>
</ol>
</nav>
<div class="div1">
<div class="div2">
<h2><a id="parsing.wellformed"></a>A.1 Use of MathML as Well-Formed
XML</h2>
<p>A MathML document must be a well-formed XML document using elements in the MathML
namespace as defined by this specification, however it is not required that the document
refer to any specific Document Type Definition (DTD) or schema that specifies MathML.
It
is sometimes advantageous <em>not</em> to specify such a language definition as these
files are large, often much larger than the MathML expression and unless they have
been
previously cached by the MathML application, the time taken to fetch the DTD or schema
may
have an appreciable effect on the processing of the MathML document.</p>
<p>Note that if no DTD is specified with a DOCTYPE declaration, that entity
references (for example to refer to MathML characters by name) may not be used. The
document should be encoded in an encoding (for example UTF-8) in which all needed
characters may be encoded as character data, or characters may be referenced using
numeric
character references, for example &#x222B; rather than &int;</p>
<p>If a MathML fragment is parsed without a DTD, in other words as a well-formed XML
fragment, it is the responsibility of the processing application to treat the white
space
characters occurring outside of token elements as not significant.</p>
<p>However, in many circumstances, especially while producing or editing MathML, it is
useful to use a language definition to constrain the editing process or to check the
correctness of generated files. The following section, <a href="#parsing.usingrnc">Section A.2 Using the RelaxNG Schema for MathML3</a>,
discusses the RelaxNG Schema for MathML3 <a href="appendixg.xml#RELAX-NG">[RELAX-NG]</a>, which forms a normative
part of the specification. Following that, <a href="#parsing.usingxsd">Section A.4 Using the MathML XML Schema</a>, and <a href="#parsing.usingdtd">Section A.3 Using the MathML DTD</a> discuss alternative languages definition using the document type
definitions (DTD) and the W3C XML schema language, <a href="appendixh.xml#XMLSchemas">[XMLSchemas]</a>, both of
which are derived from the normative RelaxNG schema automatically. One should note
that
the schema definitions of the language is currently stricter than the DTD version.
That
is, a schema validating processor will declare invalid documents that are declared
valid
by a (DTD) validating XML parser. This is partly due to the fact that the XML schema
language may express additional constraints not expressable in the DTD, and partly
due to
the fact that for reasons of compatibility with earlier releases, the DTD is intentionally
forgiving in some places and does not enforce constraints that are specified in the
text
of this specification.</p>
</div>
<div class="div2">
<h2><a id="parsing.usingrnc"></a>A.2 Using the RelaxNG Schema for MathML3</h2>
<p>MathML documents should be validated using the RelaxNG Schema for MathML, either in
the XML encoding (<a href="http://www.w3.org/Math/RelaxNG/mathml3/mathml3.rng">http://www.w3.org/Math/RelaxNG/mathml3/mathml3.rng</a>)
or in compact notation (<a href="http://www.w3.org/Math/RelaxNG/mathml3/mathml3.rnc">http://www.w3.org/Math/RelaxNG/mathml3/mathml3.rnc</a>)
which is also shown below.</p>
<p>In contrast to DTDs there is no in-document method to associate a RelaxNG schema with
a document.</p>
<p>We provide five RelaxNG schema for MathML3 in five parts:
</p>
<ul>
<li>
<p>The grammar for full MathML</p>
</li>
<li>
<p>The grammar for elements common to Content and Presentation</p>
</li>
<li>
<p>The grammar for Presentation MathML</p>
</li>
<li>
<p>The grammar for Strict Content MathML</p>
</li>
<li>
<p>The grammar for Content MathML3</p>
</li>
</ul>
<div class="div3">
<h3><a id="parsing.rnc.full"></a>A.2.1 Full MathML</h3>
<p>The RelaxNG schema for full MathML builds on the schema describing the various parts
of the language which are given in the following sections. It can be found at <a href="http://www.w3.org/Math/RelaxNG/mathml3/mathml3.rnc">http://www.w3.org/Math/RelaxNG/mathml3/mathml3.rnc</a>.</p>
<pre># This is the Mathematical Markup Language (MathML) 3.0, an XML
# application for describing mathematical notation and capturing
# both its structure and content.
#
# Copyright 1998-2010 W3C (MIT, ERCIM, Keio)
#
# Use and distribution of this code are permitted under the terms
# W3C Software Notice and License
# http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
<b>default</b> <b>namespace</b> <b id="parsing_m">m</b> = "http://www.w3.org/1998/Math/MathML"
## Content MathML
<b>include</b> "mathml3-content.rnc"
## Presentation MathML
<b>include</b> "mathml3-presentation.rnc"
## math and semantics common to both Content and Presentation
<b>include</b> "mathml3-common.rnc"
</pre>
</div>
<div class="div3">
<h3><a id="parsing.rnc.common"></a>A.2.2 Elements Common to Presentation and Content MathML</h3>
<pre># This is the Mathematical Markup Language (MathML) 3.0, an XML
# application for describing mathematical notation and capturing
# both its structure and content.
#
# Copyright 1998-2014 W3C (MIT, ERCIM, Keio, Beihang)
#
# Use and distribution of this code are permitted under the terms
# W3C Software Notice and License
# http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
<b>default</b> <b>namespace</b> <b>m</b> = "http://www.w3.org/1998/Math/MathML"
<b>namespace</b> <b id="parsing_local">local</b> = ""
<b id="parsing_start">start</b> = <a href="#parsing_math">math</a>
<b id="parsing_math">math</b> = <b>element</b> <code>math</code> {<a href="#parsing_math.attributes">math.attributes</a>,<a href="#parsing_MathExpression">MathExpression</a>*}
<b id="parsing_MathExpression">MathExpression</b> = <a href="#parsing_semantics">semantics</a>
<b id="parsing_NonMathMLAtt">NonMathMLAtt</b> = <b>attribute</b> <code>(* - (local:*|m:*)</code>) {xsd:string}
<b id="parsing_CommonDeprecatedAtt">CommonDeprecatedAtt</b> = <b>attribute</b> <code>other</code> {text}?
<b id="parsing_CommonAtt">CommonAtt</b> = <b>attribute</b> <code>id</code> {xsd:ID}?,
<b>attribute</b> <code>xref</code> {text}?,
<b>attribute</b> <code>class</code> {xsd:NMTOKENS}?,
<b>attribute</b> <code>style</code> {xsd:string}?,
<b>attribute</b> <code>href</code> {xsd:anyURI}?,
<a href="#parsing_CommonDeprecatedAtt">CommonDeprecatedAtt</a>,
<a href="#parsing_NonMathMLAtt">NonMathMLAtt</a>*
<b id="parsing_math.attributes">math.attributes</b> = <a href="#parsing_CommonAtt">CommonAtt</a>,
<b>attribute</b> <code>display</code> {"block" | "inline"}?,
<b>attribute</b> <code>maxwidth</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>overflow</code> {"linebreak" | "scroll" | "elide" | "truncate" | "scale"}?,
<b>attribute</b> <code>altimg</code> {xsd:anyURI}?,
<b>attribute</b> <code>altimg-width</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>altimg-height</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>altimg-valign</code> {<a href="#parsing_length">length</a> | "top" | "middle" | "bottom"}?,
<b>attribute</b> <code>alttext</code> {text}?,
<b>attribute</b> <code>cdgroup</code> {xsd:anyURI}?,
<a href="#parsing_math.deprecatedattributes">math.deprecatedattributes</a>
# the mathml3-presentation schema adds additional attributes
# to the math element, all those valid on mstyle
<b id="parsing_math.deprecatedattributes">math.deprecatedattributes</b> = <b>attribute</b> <code>mode</code> {xsd:string}?,
<b>attribute</b> <code>macros</code> {xsd:string}?
<b id="parsing_name">name</b> = <b>attribute</b> <code>name</code> {xsd:NCName}
<b id="parsing_cd">cd</b> = <b>attribute</b> <code>cd</code> {xsd:NCName}
<b id="parsing_src">src</b> = <b>attribute</b> <code>src</code> {xsd:anyURI}?
<b id="parsing_annotation">annotation</b> = <b>element</b> <code>annotation</code> {<a href="#parsing_annotation.attributes">annotation.attributes</a>,text}
<b id="parsing_annotation-xml.model">annotation-xml.model</b> = (<a href="#parsing_MathExpression">MathExpression</a>|<a href="#parsing_anyElement">anyElement</a>)*
<b id="parsing_anyElement">anyElement</b> = <b>element</b> (* - m:*) {(<b>attribute</b> <code>*</code> {text}|text| <a href="#parsing_anyElement">anyElement</a>)*}
<b id="parsing_annotation-xml">annotation-xml</b> = <b>element</b> <code>annotation-xml</code> {<a href="#parsing_annotation.attributes">annotation.attributes</a>,
<a href="#parsing_annotation-xml.model">annotation-xml.model</a>}
<b id="parsing_annotation.attributes">annotation.attributes</b> = <a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_cd">cd</a>?,
<a href="#parsing_name">name</a>?,
<a href="#parsing_DefEncAtt">DefEncAtt</a>,
<a href="#parsing_src">src</a>?
<b id="parsing_DefEncAtt">DefEncAtt</b> = <b>attribute</b> <code>encoding</code> {xsd:string}?,
<b>attribute</b> <code>definitionURL</code> {xsd:anyURI}?
<b id="parsing_semantics">semantics</b> = <b>element</b> <code>semantics</code> {<a href="#parsing_semantics.attributes">semantics.attributes</a>,
<a href="#parsing_MathExpression">MathExpression</a>,
(<a href="#parsing_annotation">annotation</a>|<a href="#parsing_annotation-xml">annotation-xml</a>)*}
<b id="parsing_semantics.attributes">semantics.attributes</b> = <a href="#parsing_CommonAtt">CommonAtt</a>,<a href="#parsing_DefEncAtt">DefEncAtt</a>,<a href="#parsing_cd">cd</a>?,<a href="#parsing_name">name</a>?
<b id="parsing_length">length</b>
# wrapped for display
= xsd:string {
pattern = '\s*((-?[0-9]*([0-9]\.?|\.[0-9])[0-9]*(e[mx]|in|cm|mm|p[xtc]|%)?)|(negative)?((very){0,2}thi(n|
ck)|medium)mathspace)\s*'
}
</pre>
</div>
<div class="div3">
<h3><a id="parsing.rnc.pres"></a>A.2.3 The Grammar for Presentation MathML</h3>
<pre>
# This is the Mathematical Markup Language (MathML) 3.0, an XML
# application for describing mathematical notation and capturing
# both its structure and content.
#
# Copyright 1998-2014 W3C (MIT, ERCIM, Keio, Beihang)
#
# Use and distribution of this code are permitted under the terms
# W3C Software Notice and License
# http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
<b>default</b> <b>namespace</b> <b>m</b> = "http://www.w3.org/1998/Math/MathML"
<a href="#parsing_MathExpression">MathExpression</a> |= <a href="#parsing_PresentationExpression">PresentationExpression</a>
<b id="parsing_ImpliedMrow">ImpliedMrow</b> = <a href="#parsing_MathExpression">MathExpression</a>*
<b id="parsing_TableRowExpression">TableRowExpression</b> = <a href="#parsing_mtr">mtr</a>|<a href="#parsing_mlabeledtr">mlabeledtr</a>
<b id="parsing_TableCellExpression">TableCellExpression</b> = <a href="#parsing_mtd">mtd</a>
<b id="parsing_MstackExpression">MstackExpression</b> = <a href="#parsing_MathExpression">MathExpression</a>|<a href="#parsing_mscarries">mscarries</a>|<a href="#parsing_msline">msline</a>|<a href="#parsing_msrow">msrow</a>|<a href="#parsing_msgroup">msgroup</a>
<b id="parsing_MsrowExpression">MsrowExpression</b> = <a href="#parsing_MathExpression">MathExpression</a>|<a href="#parsing_none">none</a>
<b id="parsing_MultiScriptExpression">MultiScriptExpression</b> = (<a href="#parsing_MathExpression">MathExpression</a>|<a href="#parsing_none">none</a>),(<a href="#parsing_MathExpression">MathExpression</a>|<a href="#parsing_none">none</a>)
<b id="parsing_mpadded-length">mpadded-length</b>
# wrapped for display
= xsd:string {
pattern = '\s*([\+\-]?[0-9]*([0-9]\.?|\.[0-9])[0-9]*\s*((%?\s*(height|depth|width)?)|
e[mx]|in|cm|mm|p[xtc]|((negative)?((very){0,2}thi(n|ck)|medium)mathspace))?)\s*' }
<b id="parsing_linestyle">linestyle</b> = "none" | "solid" | "dashed"
<b id="parsing_verticalalign">verticalalign</b> =
"top" |
"bottom" |
"center" |
"baseline" |
"axis"
<b id="parsing_columnalignstyle">columnalignstyle</b> = "left" | "center" | "right"
<b id="parsing_notationstyle">notationstyle</b> =
"longdiv" |
"actuarial" |
"radical" |
"box" |
"roundedbox" |
"circle" |
"left" |
"right" |
"top" |
"bottom" |
"updiagonalstrike" |
"downdiagonalstrike" |
"verticalstrike" |
"horizontalstrike" |
"madruwb"
<b id="parsing_idref">idref</b> = text
<b id="parsing_unsigned-integer">unsigned-integer</b> = xsd:unsignedLong
<b id="parsing_integer">integer</b> = xsd:integer
<b id="parsing_number">number</b> = xsd:decimal
<b id="parsing_character">character</b> = xsd:string {
pattern = '\s*\S\s*'}
<b id="parsing_color">color</b>
# wrapped for display
= xsd:string {
pattern = '\s*((#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?)|[aA][qQ][uU][aA]|[bB][lL][aA][cC][kK]|
[bB][lL][uU][eE]|[fF][uU][cC][hH][sS][iI][aA]|[gG][rR][aA][yY]|[gG][rR][eE][eE][nN]|
[lL][iI][mM][eE]|[mM][aA][rR][oO][oO][nN]|[nN][aA][vV][yY]|[oO][lL][iI][vV][eE]|[pP][uU][rR][pP][lL][eE]|
[rR][eE][dD]|[sS][iI][lL][vV][eE][rR]|[tT][eE][aA][lL]|[wW][hH][iI][tT][eE]|[yY][eE][lL][lL][oO][wW])\s*'}
<b id="parsing_group-alignment">group-alignment</b> = "left" | "center" | "right" | "decimalpoint"
<b id="parsing_group-alignment-list">group-alignment-list</b> = <a href="#parsing_list">list</a> {<a href="#parsing_group-alignment">group-alignment</a>+}
<b id="parsing_group-alignment-list-list">group-alignment-list-list</b> = xsd:string {
pattern = '(\s*\{\s*(left|center|right|decimalpoint)(\s+(left|center|right|decimalpoint))*\})*\s*' }
<b id="parsing_positive-integer">positive-integer</b> = xsd:positiveInteger
<b id="parsing_TokenExpression">TokenExpression</b> = <a href="#parsing_mi">mi</a>|<a href="#parsing_mn">mn</a>|<a href="#parsing_mo">mo</a>|<a href="#parsing_mtext">mtext</a>|<a href="#parsing_mspace">mspace</a>|<a href="#parsing_ms">ms</a>
<b id="parsing_token.content">token.content</b> = <a href="#parsing_mglyph">mglyph</a>|<a href="#parsing_malignmark">malignmark</a>|text
<b id="parsing_mi">mi</b> = <b>element</b> <code>mi</code> {<a href="#parsing_mi.attributes">mi.attributes</a>, <a href="#parsing_token.content">token.content</a>*}
<b id="parsing_mi.attributes">mi.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<a href="#parsing_TokenAtt">TokenAtt</a>
<b id="parsing_mn">mn</b> = <b>element</b> <code>mn</code> {<a href="#parsing_mn.attributes">mn.attributes</a>, <a href="#parsing_token.content">token.content</a>*}
<b id="parsing_mn.attributes">mn.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<a href="#parsing_TokenAtt">TokenAtt</a>
<b id="parsing_mo">mo</b> = <b>element</b> <code>mo</code> {<a href="#parsing_mo.attributes">mo.attributes</a>, <a href="#parsing_token.content">token.content</a>*}
<b id="parsing_mo.attributes">mo.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<a href="#parsing_TokenAtt">TokenAtt</a>,
<b>attribute</b> <code>form</code> {"prefix" | "infix" | "postfix"}?,
<b>attribute</b> <code>fence</code> {"true" | "false"}?,
<b>attribute</b> <code>separator</code> {"true" | "false"}?,
<b>attribute</b> <code>lspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>rspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>stretchy</code> {"true" | "false"}?,
<b>attribute</b> <code>symmetric</code> {"true" | "false"}?,
<b>attribute</b> <code>maxsize</code> {<a href="#parsing_length">length</a> | "infinity"}?,
<b>attribute</b> <code>minsize</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>largeop</code> {"true" | "false"}?,
<b>attribute</b> <code>movablelimits</code> {"true" | "false"}?,
<b>attribute</b> <code>accent</code> {"true" | "false"}?,
<b>attribute</b> <code>linebreak</code> {"auto" | "newline" | "nobreak" | "goodbreak" | "badbreak"}?,
<b>attribute</b> <code>lineleading</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>linebreakstyle</code> {"before" | "after" | "duplicate" | "infixlinebreakstyle"}?,
<b>attribute</b> <code>linebreakmultchar</code> {text}?,
<b>attribute</b> <code>indentalign</code> {"left" | "center" | "right" | "auto" | "id"}?,
<b>attribute</b> <code>indentshift</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>indenttarget</code> {<a href="#parsing_idref">idref</a>}?,
<b>attribute</b> <code>indentalignfirst</code> {"left" | "center" | "right" | "auto" | "id" | "indentalign"}?,
<b>attribute</b> <code>indentshiftfirst</code> {<a href="#parsing_length">length</a> | "indentshift"}?,
<b>attribute</b> <code>indentalignlast</code> {"left" | "center" | "right" | "auto" | "id" | "indentalign"}?,
<b>attribute</b> <code>indentshiftlast</code> {<a href="#parsing_length">length</a> | "indentshift"}?
<b id="parsing_mtext">mtext</b> = <b>element</b> <code>mtext</code> {<a href="#parsing_mtext.attributes">mtext.attributes</a>, <a href="#parsing_token.content">token.content</a>*}
<b id="parsing_mtext.attributes">mtext.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<a href="#parsing_TokenAtt">TokenAtt</a>
<b id="parsing_mspace">mspace</b> = <b>element</b> <code>mspace</code> {<a href="#parsing_mspace.attributes">mspace.attributes</a>, empty}
<b id="parsing_mspace.attributes">mspace.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<a href="#parsing_TokenAtt">TokenAtt</a>,
<b>attribute</b> <code>width</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>height</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>depth</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>linebreak</code> {"auto" | "newline" | "nobreak" | "goodbreak" | "badbreak" | "indentingnewline"}?,
<b>attribute</b> <code>indentalign</code> {"left" | "center" | "right" | "auto" | "id"}?,
<b>attribute</b> <code>indentshift</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>indenttarget</code> {<a href="#parsing_idref">idref</a>}?,
<b>attribute</b> <code>indentalignfirst</code> {"left" | "center" | "right" | "auto" | "id" | "indentalign"}?,
<b>attribute</b> <code>indentshiftfirst</code> {<a href="#parsing_length">length</a> | "indentshift"}?,
<b>attribute</b> <code>indentalignlast</code> {"left" | "center" | "right" | "auto" | "id" | "indentalign"}?,
<b>attribute</b> <code>indentshiftlast</code> {<a href="#parsing_length">length</a> | "indentshift"}?
<b id="parsing_ms">ms</b> = <b>element</b> <code>ms</code> {<a href="#parsing_ms.attributes">ms.attributes</a>, <a href="#parsing_token.content">token.content</a>*}
<b id="parsing_ms.attributes">ms.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<a href="#parsing_TokenAtt">TokenAtt</a>,
<b>attribute</b> <code>lquote</code> {text}?,
<b>attribute</b> <code>rquote</code> {text}?
<b id="parsing_mglyph">mglyph</b> = <b>element</b> <code>mglyph</code> {<a href="#parsing_mglyph.attributes">mglyph.attributes</a>,<a href="#parsing_mglyph.deprecatedattributes">mglyph.deprecatedattributes</a>,empty}
<b id="parsing_mglyph.attributes">mglyph.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>src</code> {xsd:anyURI}?,
<b>attribute</b> <code>width</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>height</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>valign</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>alt</code> {text}?
<b id="parsing_mglyph.deprecatedattributes">mglyph.deprecatedattributes</b> =
<b>attribute</b> <code>index</code> {<a href="#parsing_integer">integer</a>}?,
<b>attribute</b> <code>mathvariant</code> {"normal" | "bold" | "italic" | "bold-italic" | "double-struck" | "bold-fraktur" |
"script" | "bold-script" | "fraktur" | "sans-serif" | "bold-sans-serif" | "sans-serif-italic" |
"sans-serif-bold-italic" | "monospace" | "initial" | "tailed" | "looped" | "stretched"}?,
<b>attribute</b> <code>mathsize</code> {"small" | "normal" | "big" | <a href="#parsing_length">length</a>}?,
<a href="#parsing_DeprecatedTokenAtt">DeprecatedTokenAtt</a>
<b id="parsing_msline">msline</b> = <b>element</b> <code>msline</code> {<a href="#parsing_msline.attributes">msline.attributes</a>,empty}
<b id="parsing_msline.attributes">msline.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>position</code> {<a href="#parsing_integer">integer</a>}?,
<b>attribute</b> <code>length</code> {<a href="#parsing_unsigned-integer">unsigned-integer</a>}?,
<b>attribute</b> <code>leftoverhang</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>rightoverhang</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>mslinethickness</code> {<a href="#parsing_length">length</a> | "thin" | "medium" | "thick"}?
<b id="parsing_none">none</b> = <b>element</b> <code>none</code> {<a href="#parsing_none.attributes">none.attributes</a>,empty}
<b id="parsing_none.attributes">none.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>
<b id="parsing_mprescripts">mprescripts</b> = <b>element</b> <code>mprescripts</code> {<a href="#parsing_mprescripts.attributes">mprescripts.attributes</a>,empty}
<b id="parsing_mprescripts.attributes">mprescripts.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>,
<a href="#parsing_CommonPresAtt">CommonPresAtt</a>
<b id="parsing_CommonPresAtt">CommonPresAtt</b> =
<b>attribute</b> <code>mathcolor</code> {<a href="#parsing_color">color</a>}?,
<b>attribute</b> <code>mathbackground</code> {<a href="#parsing_color">color</a> | "transparent"}?
<b id="parsing_TokenAtt">TokenAtt</b> =
<b>attribute</b> <code>mathvariant</code> {"normal" | "bold" | "italic" | "bold-italic" | "double-struck" | "bold-fraktur" |
"script" | "bold-script" | "fraktur" | "sans-serif" | "bold-sans-serif" | "sans-serif-italic" |
"sans-serif-bold-italic" | "monospace" | "initial" | "tailed" | "looped" | "stretched"}?,
<b>attribute</b> <code>mathsize</code> {"small" | "normal" | "big" | <a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>dir</code> {"ltr" | "rtl"}?,
<a href="#parsing_DeprecatedTokenAtt">DeprecatedTokenAtt</a>
<b id="parsing_DeprecatedTokenAtt">DeprecatedTokenAtt</b> =
<b>attribute</b> <code>fontfamily</code> {text}?,
<b>attribute</b> <code>fontweight</code> {"normal" | "bold"}?,
<b>attribute</b> <code>fontstyle</code> {"normal" | "italic"}?,
<b>attribute</b> <code>fontsize</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>color</code> {<a href="#parsing_color">color</a>}?,
<b>attribute</b> <code>background</code> {<a href="#parsing_color">color</a> | "transparent"}?
<b id="parsing_MalignExpression">MalignExpression</b> = <a href="#parsing_maligngroup">maligngroup</a>|<a href="#parsing_malignmark">malignmark</a>
<b id="parsing_malignmark">malignmark</b> = <b>element</b> <code>malignmark</code> {<a href="#parsing_malignmark.attributes">malignmark.attributes</a>, empty}
<b id="parsing_malignmark.attributes">malignmark.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>edge</code> {"left" | "right"}?
<b id="parsing_maligngroup">maligngroup</b> = <b>element</b> <code>maligngroup</code> {<a href="#parsing_maligngroup.attributes">maligngroup.attributes</a>, empty}
<b id="parsing_maligngroup.attributes">maligngroup.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>groupalign</code> {"left" | "center" | "right" | "decimalpoint"}?
<b id="parsing_PresentationExpression">PresentationExpression</b> = <a href="#parsing_TokenExpression">TokenExpression</a>|<a href="#parsing_MalignExpression">MalignExpression</a>|
<a href="#parsing_mrow">mrow</a>|<a href="#parsing_mfrac">mfrac</a>|<a href="#parsing_msqrt">msqrt</a>|<a href="#parsing_mroot">mroot</a>|<a href="#parsing_mstyle">mstyle</a>|<a href="#parsing_merror">merror</a>|<a href="#parsing_mpadded">mpadded</a>|<a href="#parsing_mphantom">mphantom</a>|
<a href="#parsing_mfenced">mfenced</a>|<a href="#parsing_menclose">menclose</a>|<a href="#parsing_msub">msub</a>|<a href="#parsing_msup">msup</a>|<a href="#parsing_msubsup">msubsup</a>|<a href="#parsing_munder">munder</a>|<a href="#parsing_mover">mover</a>|<a href="#parsing_munderover">munderover</a>|
<a href="#parsing_mmultiscripts">mmultiscripts</a>|<a href="#parsing_mtable">mtable</a>|<a href="#parsing_mstack">mstack</a>|<a href="#parsing_mlongdiv">mlongdiv</a>|<a href="#parsing_maction">maction</a>
<b id="parsing_mrow">mrow</b> = <b>element</b> <code>mrow</code> {<a href="#parsing_mrow.attributes">mrow.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>*}
<b id="parsing_mrow.attributes">mrow.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>dir</code> {"ltr" | "rtl"}?
<b id="parsing_mfrac">mfrac</b> = <b>element</b> <code>mfrac</code> {<a href="#parsing_mfrac.attributes">mfrac.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_mfrac.attributes">mfrac.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>linethickness</code> {<a href="#parsing_length">length</a> | "thin" | "medium" | "thick"}?,
<b>attribute</b> <code>numalign</code> {"left" | "center" | "right"}?,
<b>attribute</b> <code>denomalign</code> {"left" | "center" | "right"}?,
<b>attribute</b> <code>bevelled</code> {"true" | "false"}?
<b id="parsing_msqrt">msqrt</b> = <b>element</b> <code>msqrt</code> {<a href="#parsing_msqrt.attributes">msqrt.attributes</a>, <a href="#parsing_ImpliedMrow">ImpliedMrow</a>}
<b id="parsing_msqrt.attributes">msqrt.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>
<b id="parsing_mroot">mroot</b> = <b>element</b> <code>mroot</code> {<a href="#parsing_mroot.attributes">mroot.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_mroot.attributes">mroot.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>
<b id="parsing_mstyle">mstyle</b> = <b>element</b> <code>mstyle</code> {<a href="#parsing_mstyle.attributes">mstyle.attributes</a>, <a href="#parsing_ImpliedMrow">ImpliedMrow</a>}
<b id="parsing_mstyle.attributes">mstyle.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<a href="#parsing_mstyle.specificattributes">mstyle.specificattributes</a>,
<a href="#parsing_mstyle.generalattributes">mstyle.generalattributes</a>,
<a href="#parsing_mstyle.deprecatedattributes">mstyle.deprecatedattributes</a>
<b id="parsing_mstyle.specificattributes">mstyle.specificattributes</b> =
<b>attribute</b> <code>scriptlevel</code> {<a href="#parsing_integer">integer</a>}?,
<b>attribute</b> <code>displaystyle</code> {"true" | "false"}?,
<b>attribute</b> <code>scriptsizemultiplier</code> {<a href="#parsing_number">number</a>}?,
<b>attribute</b> <code>scriptminsize</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>infixlinebreakstyle</code> {"before" | "after" | "duplicate"}?,
<b>attribute</b> <code>decimalpoint</code> {<a href="#parsing_character">character</a>}?
<b id="parsing_mstyle.generalattributes">mstyle.generalattributes</b> =
<b>attribute</b> <code>accent</code> {"true" | "false"}?,
<b>attribute</b> <code>accentunder</code> {"true" | "false"}?,
<b>attribute</b> <code>align</code> {"left" | "right" | "center"}?,
<b>attribute</b> <code>alignmentscope</code> {<a href="#parsing_list">list</a> {("true" | "false") +}}?,
<b>attribute</b> <code>bevelled</code> {"true" | "false"}?,
<b>attribute</b> <code>charalign</code> {"left" | "center" | "right"}?,
<b>attribute</b> <code>charspacing</code> {<a href="#parsing_length">length</a> | "loose" | "medium" | "tight"}?,
<b>attribute</b> <code>close</code> {text}?,
<b>attribute</b> <code>columnalign</code> {<a href="#parsing_list">list</a> {<a href="#parsing_columnalignstyle">columnalignstyle</a>+} }?,
<b>attribute</b> <code>columnlines</code> {<a href="#parsing_list">list</a> {<a href="#parsing_linestyle">linestyle</a> +}}?,
<b>attribute</b> <code>columnspacing</code> {<a href="#parsing_list">list</a> {(<a href="#parsing_length">length</a>) +}}?,
<b>attribute</b> <code>columnspan</code> {<a href="#parsing_positive-integer">positive-integer</a>}?,
<b>attribute</b> <code>columnwidth</code> {<a href="#parsing_list">list</a> {("auto" | <a href="#parsing_length">length</a> | "fit") +}}?,
<b>attribute</b> <code>crossout</code> {<a href="#parsing_list">list</a> {("none" | "updiagonalstrike" | "downdiagonalstrike" | "verticalstrike" | "horizontalstrike")*}}?,
<b>attribute</b> <code>denomalign</code> {"left" | "center" | "right"}?,
<b>attribute</b> <code>depth</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>dir</code> {"ltr" | "rtl"}?,
<b>attribute</b> <code>edge</code> {"left" | "right"}?,
<b>attribute</b> <code>equalcolumns</code> {"true" | "false"}?,
<b>attribute</b> <code>equalrows</code> {"true" | "false"}?,
<b>attribute</b> <code>fence</code> {"true" | "false"}?,
<b>attribute</b> <code>form</code> {"prefix" | "infix" | "postfix"}?,
<b>attribute</b> <code>frame</code> {<a href="#parsing_linestyle">linestyle</a>}?,
<b>attribute</b> <code>framespacing</code> {<a href="#parsing_list">list</a> {<a href="#parsing_length">length</a>, <a href="#parsing_length">length</a>}}?,
<b>attribute</b> <code>groupalign</code> {<a href="#parsing_group-alignment-list-list">group-alignment-list-list</a>}?,
<b>attribute</b> <code>height</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>indentalign</code> {"left" | "center" | "right" | "auto" | "id"}?,
<b>attribute</b> <code>indentalignfirst</code> {"left" | "center" | "right" | "auto" | "id" | "indentalign"}?,
<b>attribute</b> <code>indentalignlast</code> {"left" | "center" | "right" | "auto" | "id" | "indentalign"}?,
<b>attribute</b> <code>indentshift</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>indentshiftfirst</code> {<a href="#parsing_length">length</a> | "indentshift"}?,
<b>attribute</b> <code>indentshiftlast</code> {<a href="#parsing_length">length</a> | "indentshift"}?,
<b>attribute</b> <code>indenttarget</code> {<a href="#parsing_idref">idref</a>}?,
<b>attribute</b> <code>largeop</code> {"true" | "false"}?,
<b>attribute</b> <code>leftoverhang</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>length</code> {<a href="#parsing_unsigned-integer">unsigned-integer</a>}?,
<b>attribute</b> <code>linebreak</code> {"auto" | "newline" | "nobreak" | "goodbreak" | "badbreak"}?,
<b>attribute</b> <code>linebreakmultchar</code> {text}?,
<b>attribute</b> <code>linebreakstyle</code> {"before" | "after" | "duplicate" | "infixlinebreakstyle"}?,
<b>attribute</b> <code>lineleading</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>linethickness</code> {<a href="#parsing_length">length</a> | "thin" | "medium" | "thick"}?,
<b>attribute</b> <code>location</code> {"w" | "nw" | "n" | "ne" | "e" | "se" | "s" | "sw"}?,
<b>attribute</b> <code>longdivstyle</code> {"lefttop" | "stackedrightright" | "mediumstackedrightright" | "shortstackedrightright" |
"righttop" | "left/\right" | "left)(right" | ":right=right" | "stackedleftleft" |
"stackedleftlinetop"}?,
<b>attribute</b> <code>lquote</code> {text}?,
<b>attribute</b> <code>lspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>mathsize</code> {"small" | "normal" | "big" | <a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>mathvariant</code> {"normal" | "bold" | "italic" | "bold-italic" | "double-struck" | "bold-fraktur" |
"script" | "bold-script" | "fraktur" | "sans-serif" | "bold-sans-serif" | "sans-serif-italic" |
"sans-serif-bold-italic" | "monospace" | "initial" | "tailed" | "looped" | "stretched"}?,
<b>attribute</b> <code>maxsize</code> {<a href="#parsing_length">length</a> | "infinity"}?,
<b>attribute</b> <code>minlabelspacing</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>minsize</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>movablelimits</code> {"true" | "false"}?,
<b>attribute</b> <code>mslinethickness</code> {<a href="#parsing_length">length</a> | "thin" | "medium" | "thick"}?,
<b>attribute</b> <code>notation</code> {text}?,
<b>attribute</b> <code>numalign</code> {"left" | "center" | "right"}?,
<b>attribute</b> <code>open</code> {text}?,
<b>attribute</b> <code>position</code> {<a href="#parsing_integer">integer</a>}?,
<b>attribute</b> <code>rightoverhang</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>rowalign</code> {<a href="#parsing_list">list</a> {<a href="#parsing_verticalalign">verticalalign</a>+} }?,
<b>attribute</b> <code>rowlines</code> {<a href="#parsing_list">list</a> {<a href="#parsing_linestyle">linestyle</a> +}}?,
<b>attribute</b> <code>rowspacing</code> {<a href="#parsing_list">list</a> {(<a href="#parsing_length">length</a>) +}}?,
<b>attribute</b> <code>rowspan</code> {<a href="#parsing_positive-integer">positive-integer</a>}?,
<b>attribute</b> <code>rquote</code> {text}?,
<b>attribute</b> <code>rspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>selection</code> {<a href="#parsing_positive-integer">positive-integer</a>}?,
<b>attribute</b> <code>separator</code> {"true" | "false"}?,
<b>attribute</b> <code>separators</code> {text}?,
<b>attribute</b> <code>shift</code> {<a href="#parsing_integer">integer</a>}?,
<b>attribute</b> <code>side</code> {"left" | "right" | "leftoverlap" | "rightoverlap"}?,
<b>attribute</b> <code>stackalign</code> {"left" | "center" | "right" | "decimalpoint"}?,
<b>attribute</b> <code>stretchy</code> {"true" | "false"}?,
<b>attribute</b> <code>subscriptshift</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>superscriptshift</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>symmetric</code> {"true" | "false"}?,
<b>attribute</b> <code>valign</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>width</code> {<a href="#parsing_length">length</a>}?
<b id="parsing_mstyle.deprecatedattributes">mstyle.deprecatedattributes</b> =
<a href="#parsing_DeprecatedTokenAtt">DeprecatedTokenAtt</a>,
<b>attribute</b> <code>veryverythinmathspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>verythinmathspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>thinmathspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>mediummathspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>thickmathspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>verythickmathspace</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>veryverythickmathspace</code> {<a href="#parsing_length">length</a>}?
<a href="#parsing_math.attributes">math.attributes</a> &= <a href="#parsing_CommonPresAtt">CommonPresAtt</a>
<a href="#parsing_math.attributes">math.attributes</a> &= <a href="#parsing_mstyle.specificattributes">mstyle.specificattributes</a>
<a href="#parsing_math.attributes">math.attributes</a> &= <a href="#parsing_mstyle.generalattributes">mstyle.generalattributes</a>
<b id="parsing_merror">merror</b> = <b>element</b> <code>merror</code> {<a href="#parsing_merror.attributes">merror.attributes</a>, <a href="#parsing_ImpliedMrow">ImpliedMrow</a>}
<b id="parsing_merror.attributes">merror.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>
<b id="parsing_mpadded">mpadded</b> = <b>element</b> <code>mpadded</code> {<a href="#parsing_mpadded.attributes">mpadded.attributes</a>, <a href="#parsing_ImpliedMrow">ImpliedMrow</a>}
<b id="parsing_mpadded.attributes">mpadded.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>height</code> {<a href="#parsing_mpadded-length">mpadded-length</a>}?,
<b>attribute</b> <code>depth</code> {<a href="#parsing_mpadded-length">mpadded-length</a>}?,
<b>attribute</b> <code>width</code> {<a href="#parsing_mpadded-length">mpadded-length</a>}?,
<b>attribute</b> <code>lspace</code> {<a href="#parsing_mpadded-length">mpadded-length</a>}?,
<b>attribute</b> <code>voffset</code> {<a href="#parsing_mpadded-length">mpadded-length</a>}?
<b id="parsing_mphantom">mphantom</b> = <b>element</b> <code>mphantom</code> {<a href="#parsing_mphantom.attributes">mphantom.attributes</a>, <a href="#parsing_ImpliedMrow">ImpliedMrow</a>}
<b id="parsing_mphantom.attributes">mphantom.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>
<b id="parsing_mfenced">mfenced</b> = <b>element</b> <code>mfenced</code> {<a href="#parsing_mfenced.attributes">mfenced.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>*}
<b id="parsing_mfenced.attributes">mfenced.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>open</code> {text}?,
<b>attribute</b> <code>close</code> {text}?,
<b>attribute</b> <code>separators</code> {text}?
<b id="parsing_menclose">menclose</b> = <b>element</b> <code>menclose</code> {<a href="#parsing_menclose.attributes">menclose.attributes</a>, <a href="#parsing_ImpliedMrow">ImpliedMrow</a>}
<b id="parsing_menclose.attributes">menclose.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>notation</code> {text}?
<b id="parsing_msub">msub</b> = <b>element</b> <code>msub</code> {<a href="#parsing_msub.attributes">msub.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_msub.attributes">msub.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>subscriptshift</code> {<a href="#parsing_length">length</a>}?
<b id="parsing_msup">msup</b> = <b>element</b> <code>msup</code> {<a href="#parsing_msup.attributes">msup.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_msup.attributes">msup.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>superscriptshift</code> {<a href="#parsing_length">length</a>}?
<b id="parsing_msubsup">msubsup</b> = <b>element</b> <code>msubsup</code> {<a href="#parsing_msubsup.attributes">msubsup.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_msubsup.attributes">msubsup.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>subscriptshift</code> {<a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>superscriptshift</code> {<a href="#parsing_length">length</a>}?
<b id="parsing_munder">munder</b> = <b>element</b> <code>munder</code> {<a href="#parsing_munder.attributes">munder.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_munder.attributes">munder.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>accentunder</code> {"true" | "false"}?,
<b>attribute</b> <code>align</code> {"left" | "right" | "center"}?
<b id="parsing_mover">mover</b> = <b>element</b> <code>mover</code> {<a href="#parsing_mover.attributes">mover.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_mover.attributes">mover.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>accent</code> {"true" | "false"}?,
<b>attribute</b> <code>align</code> {"left" | "right" | "center"}?
<b id="parsing_munderover">munderover</b> = <b>element</b> <code>munderover</code> {<a href="#parsing_munderover.attributes">munderover.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>, <a href="#parsing_MathExpression">MathExpression</a>}
<b id="parsing_munderover.attributes">munderover.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>accent</code> {"true" | "false"}?,
<b>attribute</b> <code>accentunder</code> {"true" | "false"}?,
<b>attribute</b> <code>align</code> {"left" | "right" | "center"}?
<b id="parsing_mmultiscripts">mmultiscripts</b> = <b>element</b> <code>mmultiscripts</code> {<a href="#parsing_mmultiscripts.attributes">mmultiscripts.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>,<a href="#parsing_MultiScriptExpression">MultiScriptExpression</a>*,(<a href="#parsing_mprescripts">mprescripts</a>,<a href="#parsing_MultiScriptExpression">MultiScriptExpression</a>*)?}
<b id="parsing_mmultiscripts.attributes">mmultiscripts.attributes</b> =
<a href="#parsing_msubsup.attributes">msubsup.attributes</a>
<b id="parsing_mtable">mtable</b> = <b>element</b> <code>mtable</code> {<a href="#parsing_mtable.attributes">mtable.attributes</a>, <a href="#parsing_TableRowExpression">TableRowExpression</a>*}
<b id="parsing_mtable.attributes">mtable.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>align</code> {xsd:string {
pattern ='\s*(top|bottom|center|baseline|axis)(\s+-?[0-9]+)?\s*'}}?,
<b>attribute</b> <code>rowalign</code> {<a href="#parsing_list">list</a> {<a href="#parsing_verticalalign">verticalalign</a>+} }?,
<b>attribute</b> <code>columnalign</code> {<a href="#parsing_list">list</a> {<a href="#parsing_columnalignstyle">columnalignstyle</a>+} }?,
<b>attribute</b> <code>groupalign</code> {<a href="#parsing_group-alignment-list-list">group-alignment-list-list</a>}?,
<b>attribute</b> <code>alignmentscope</code> {<a href="#parsing_list">list</a> {("true" | "false") +}}?,
<b>attribute</b> <code>columnwidth</code> {<a href="#parsing_list">list</a> {("auto" | <a href="#parsing_length">length</a> | "fit") +}}?,
<b>attribute</b> <code>width</code> {"auto" | <a href="#parsing_length">length</a>}?,
<b>attribute</b> <code>rowspacing</code> {<a href="#parsing_list">list</a> {(<a href="#parsing_length">length</a>) +}}?,
<b>attribute</b> <code>columnspacing</code> {<a href="#parsing_list">list</a> {(<a href="#parsing_length">length</a>) +}}?,
<b>attribute</b> <code>rowlines</code> {<a href="#parsing_list">list</a> {<a href="#parsing_linestyle">linestyle</a> +}}?,
<b>attribute</b> <code>columnlines</code> {<a href="#parsing_list">list</a> {<a href="#parsing_linestyle">linestyle</a> +}}?,
<b>attribute</b> <code>frame</code> {<a href="#parsing_linestyle">linestyle</a>}?,
<b>attribute</b> <code>framespacing</code> {<a href="#parsing_list">list</a> {<a href="#parsing_length">length</a>, <a href="#parsing_length">length</a>}}?,
<b>attribute</b> <code>equalrows</code> {"true" | "false"}?,
<b>attribute</b> <code>equalcolumns</code> {"true" | "false"}?,
<b>attribute</b> <code>displaystyle</code> {"true" | "false"}?,
<b>attribute</b> <code>side</code> {"left" | "right" | "leftoverlap" | "rightoverlap"}?,
<b>attribute</b> <code>minlabelspacing</code> {<a href="#parsing_length">length</a>}?
<b id="parsing_mlabeledtr">mlabeledtr</b> = <b>element</b> <code>mlabeledtr</code> {<a href="#parsing_mlabeledtr.attributes">mlabeledtr.attributes</a>, <a href="#parsing_TableCellExpression">TableCellExpression</a>+}
<b id="parsing_mlabeledtr.attributes">mlabeledtr.attributes</b> =
<a href="#parsing_mtr.attributes">mtr.attributes</a>
<b id="parsing_mtr">mtr</b> = <b>element</b> <code>mtr</code> {<a href="#parsing_mtr.attributes">mtr.attributes</a>, <a href="#parsing_TableCellExpression">TableCellExpression</a>*}
<b id="parsing_mtr.attributes">mtr.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>rowalign</code> {"top" | "bottom" | "center" | "baseline" | "axis"}?,
<b>attribute</b> <code>columnalign</code> {<a href="#parsing_list">list</a> {<a href="#parsing_columnalignstyle">columnalignstyle</a>+} }?,
<b>attribute</b> <code>groupalign</code> {<a href="#parsing_group-alignment-list-list">group-alignment-list-list</a>}?
<b id="parsing_mtd">mtd</b> = <b>element</b> <code>mtd</code> {<a href="#parsing_mtd.attributes">mtd.attributes</a>, <a href="#parsing_ImpliedMrow">ImpliedMrow</a>}
<b id="parsing_mtd.attributes">mtd.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>rowspan</code> {<a href="#parsing_positive-integer">positive-integer</a>}?,
<b>attribute</b> <code>columnspan</code> {<a href="#parsing_positive-integer">positive-integer</a>}?,
<b>attribute</b> <code>rowalign</code> {"top" | "bottom" | "center" | "baseline" | "axis"}?,
<b>attribute</b> <code>columnalign</code> {<a href="#parsing_columnalignstyle">columnalignstyle</a>}?,
<b>attribute</b> <code>groupalign</code> {<a href="#parsing_group-alignment-list">group-alignment-list</a>}?
<b id="parsing_mstack">mstack</b> = <b>element</b> <code>mstack</code> {<a href="#parsing_mstack.attributes">mstack.attributes</a>, <a href="#parsing_MstackExpression">MstackExpression</a>*}
<b id="parsing_mstack.attributes">mstack.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>align</code> {xsd:string {
pattern ='\s*(top|bottom|center|baseline|axis)(\s+-?[0-9]+)?\s*'}}?,
<b>attribute</b> <code>stackalign</code> {"left" | "center" | "right" | "decimalpoint"}?,
<b>attribute</b> <code>charalign</code> {"left" | "center" | "right"}?,
<b>attribute</b> <code>charspacing</code> {<a href="#parsing_length">length</a> | "loose" | "medium" | "tight"}?
<b id="parsing_mlongdiv">mlongdiv</b> = <b>element</b> <code>mlongdiv</code> {<a href="#parsing_mlongdiv.attributes">mlongdiv.attributes</a>, <a href="#parsing_MstackExpression">MstackExpression</a>,<a href="#parsing_MstackExpression">MstackExpression</a>,<a href="#parsing_MstackExpression">MstackExpression</a>+}
<b id="parsing_mlongdiv.attributes">mlongdiv.attributes</b> =
<a href="#parsing_msgroup.attributes">msgroup.attributes</a>,
<b>attribute</b> <code>longdivstyle</code> {"lefttop" | "stackedrightright" | "mediumstackedrightright" | "shortstackedrightright" |
"righttop" | "left/\right" | "left)(right" | ":right=right" | "stackedleftleft" |
"stackedleftlinetop"}?
<b id="parsing_msgroup">msgroup</b> = <b>element</b> <code>msgroup</code> {<a href="#parsing_msgroup.attributes">msgroup.attributes</a>, <a href="#parsing_MstackExpression">MstackExpression</a>*}
<b id="parsing_msgroup.attributes">msgroup.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>position</code> {<a href="#parsing_integer">integer</a>}?,
<b>attribute</b> <code>shift</code> {<a href="#parsing_integer">integer</a>}?
<b id="parsing_msrow">msrow</b> = <b>element</b> <code>msrow</code> {<a href="#parsing_msrow.attributes">msrow.attributes</a>, <a href="#parsing_MsrowExpression">MsrowExpression</a>*}
<b id="parsing_msrow.attributes">msrow.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>position</code> {<a href="#parsing_integer">integer</a>}?
<b id="parsing_mscarries">mscarries</b> = <b>element</b> <code>mscarries</code> {<a href="#parsing_mscarries.attributes">mscarries.attributes</a>, (<a href="#parsing_MsrowExpression">MsrowExpression</a>|<a href="#parsing_mscarry">mscarry</a>)*}
<b id="parsing_mscarries.attributes">mscarries.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>position</code> {<a href="#parsing_integer">integer</a>}?,
<b>attribute</b> <code>location</code> {"w" | "nw" | "n" | "ne" | "e" | "se" | "s" | "sw"}?,
<b>attribute</b> <code>crossout</code> {<a href="#parsing_list">list</a> {("none" | "updiagonalstrike" | "downdiagonalstrike" | "verticalstrike" | "horizontalstrike")*}}?,
<b>attribute</b> <code>scriptsizemultiplier</code> {<a href="#parsing_number">number</a>}?
<b id="parsing_mscarry">mscarry</b> = <b>element</b> <code>mscarry</code> {<a href="#parsing_mscarry.attributes">mscarry.attributes</a>, <a href="#parsing_MsrowExpression">MsrowExpression</a>*}
<b id="parsing_mscarry.attributes">mscarry.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>location</code> {"w" | "nw" | "n" | "ne" | "e" | "se" | "s" | "sw"}?,
<b>attribute</b> <code>crossout</code> {<a href="#parsing_list">list</a> {("none" | "updiagonalstrike" | "downdiagonalstrike" | "verticalstrike" | "horizontalstrike")*}}?
<b id="parsing_maction">maction</b> = <b>element</b> <code>maction</code> {<a href="#parsing_maction.attributes">maction.attributes</a>, <a href="#parsing_MathExpression">MathExpression</a>+}
<b id="parsing_maction.attributes">maction.attributes</b> =
<a href="#parsing_CommonAtt">CommonAtt</a>, <a href="#parsing_CommonPresAtt">CommonPresAtt</a>,
<b>attribute</b> <code>actiontype</code> {text},
<b>attribute</b> <code>selection</code> {<a href="#parsing_positive-integer">positive-integer</a>}?
</pre>
</div>
<div class="div3">
<h3><a id="parsing.rnc.strict"></a>A.2.4 The Grammar for Strict Content MathML3</h3>
<p>The grammar for Strict Content MathML3 can be found at <a href="http://www.w3.org/Math/RelaxNG/mathml3/mathml3-strict-content.rnc">http://www.w3.org/Math/RelaxNG/mathml3/mathml3-strict-content.rnc</a>.</p>
<pre># This is the Mathematical Markup Language (MathML) 3.0, an XML
# application for describing mathematical notation and capturing
# both its structure and content.
#