-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.rng
53 lines (53 loc) · 1.79 KB
/
schema.rng
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
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="http://dlmf.nist.gov/LaTeXML" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://relaxng.org/ns/structure/1.0">
<include href="urn:x-LaTeXML:RelaxNG:LaTeXML.rng"/>
<define name="xmlattr">
<a:documentation>Analogue of xsl:attribute</a:documentation>
<element name="xmlattr">
<optional><attribute name="ns"/></optional>
<attribute name="name"/>
<optional><attribute name="value"/></optional>
</element>
</define>
<define name="xmlelem">
<a:documentation>Analogue of xsl:element</a:documentation>
<element name="xmlelem">
<optional><attribute name="ns"/></optional>
<attribute name="name"/>
<zeroOrMore>
<ref name="xmlattr"/>
</zeroOrMore>
<zeroOrMore>
<choice>
<ref name="Block.model"/>
<ref name="Para.model"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="xmlinlineelem">
<a:documentation>Analogue of xsl:element with inline content</a:documentation>
<element name="xmlinlineelem">
<optional><attribute name="ns"/></optional>
<attribute name="name"/>
<zeroOrMore>
<ref name="xmlattr"/>
</zeroOrMore>
<zeroOrMore>
<choice>
<ref name="Inline.model"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="Block.class" combine="choice">
<zeroOrMore>
<ref name="xmlelem"/>
</zeroOrMore>
</define>
<define name="Misc.class" combine="choice">
<zeroOrMore>
<ref name="xmlinlineelem"/>
</zeroOrMore>
</define>
</grammar>