Skip to content

Commit

Permalink
patched mathml.xsd and patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerZeroMaster committed Jul 1, 2024
1 parent 638053e commit 53aafe9
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ The CNXML schema validation in the extension is performed using XSD files genera

```bash
$ git -C ../cnxml checkout poet-schema
$ java -jar ../jing-trang/build/jing.jar -s ../cnxml/cnxml/xml/poet/schema/rng/poet-jing.rng > poet-simplified.rng
$ java -jar ../jing-trang/build/jing.jar -i -s ../cnxml/cnxml/xml/poet/schema/rng/poet-jing.rng > poet-simplified.rng
$ java -jar ../jing-trang/build/trang.jar -I rng -O xsd poet-simplified.rng client/static/xsd/mathml.xsd
$ patch -p1 < client/static/xsd/trang.patch
$ rm poet-simplified.rng
Expand Down
60 changes: 60 additions & 0 deletions client/static/xsd/mathml.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -3086,6 +3086,36 @@
<xs:element ref="mathml:pi"/>
<xs:element ref="mathml:eulergamma"/>
<xs:element ref="mathml:infinity"/>
<xs:group ref="mathml:mi"/>
<xs:group ref="mathml:mn"/>
<xs:group ref="mathml:mo"/>
<xs:group ref="mathml:mtext"/>
<xs:element ref="mathml:mspace"/>
<xs:group ref="mathml:ms"/>
<xs:element ref="mathml:maligngroup"/>
<xs:element ref="mathml:malignmark"/>
<xs:group ref="mathml:mrow"/>
<xs:group ref="mathml:mfrac"/>
<xs:group ref="mathml:msqrt"/>
<xs:group ref="mathml:mroot"/>
<xs:group ref="mathml:mstyle"/>
<xs:group ref="mathml:merror"/>
<xs:group ref="mathml:mpadded"/>
<xs:group ref="mathml:mphantom"/>
<xs:group ref="mathml:mfenced"/>
<xs:group ref="mathml:menclose"/>
<xs:group ref="mathml:msub"/>
<xs:group ref="mathml:msup"/>
<xs:group ref="mathml:msubsup"/>
<xs:group ref="mathml:munder"/>
<xs:group ref="mathml:mover"/>
<xs:group ref="mathml:munderover"/>
<xs:group ref="mathml:mmultiscripts"/>
<xs:group ref="mathml:mtable"/>
<xs:group ref="mathml:mstack"/>
<xs:group ref="mathml:mlongdiv"/>
<xs:group ref="mathml:maction"/>
<xs:group ref="mathml:semantics_2"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="mathml:annotation"/>
Expand Down Expand Up @@ -17988,6 +18018,36 @@
<xs:element ref="mathml:pi"/>
<xs:element ref="mathml:eulergamma"/>
<xs:element ref="mathml:infinity"/>
<xs:group ref="mathml:mi"/>
<xs:group ref="mathml:mn"/>
<xs:group ref="mathml:mo"/>
<xs:group ref="mathml:mtext"/>
<xs:element ref="mathml:mspace"/>
<xs:group ref="mathml:ms"/>
<xs:element ref="mathml:maligngroup"/>
<xs:element ref="mathml:malignmark"/>
<xs:group ref="mathml:mrow"/>
<xs:group ref="mathml:mfrac"/>
<xs:group ref="mathml:msqrt"/>
<xs:group ref="mathml:mroot"/>
<xs:group ref="mathml:mstyle"/>
<xs:group ref="mathml:merror"/>
<xs:group ref="mathml:mpadded"/>
<xs:group ref="mathml:mphantom"/>
<xs:group ref="mathml:mfenced"/>
<xs:group ref="mathml:menclose"/>
<xs:group ref="mathml:msub"/>
<xs:group ref="mathml:msup"/>
<xs:group ref="mathml:msubsup"/>
<xs:group ref="mathml:munder"/>
<xs:group ref="mathml:mover"/>
<xs:group ref="mathml:munderover"/>
<xs:group ref="mathml:mmultiscripts"/>
<xs:group ref="mathml:mtable"/>
<xs:group ref="mathml:mstack"/>
<xs:group ref="mathml:mlongdiv"/>
<xs:group ref="mathml:maction"/>
<xs:group ref="mathml:semantics_2"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="mathml:annotation"/>
Expand Down
78 changes: 78 additions & 0 deletions client/static/xsd/trang.patch
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,81 @@ index ad83744..a54a24a 100644
<xs:group name="content-id">
<xs:sequence>
<xs:element name="content-id">
diff --git a/mathml.xsd b/mathml.xsd
index bf61b8f..72fcf53 100644
--- a/client/static/xsd/mathml.xsd
+++ b/client/static/xsd/mathml.xsd
@@ -3071,6 +3071,36 @@
<xs:element ref="mathml:pi"/>
<xs:element ref="mathml:eulergamma"/>
<xs:element ref="mathml:infinity"/>
+ <xs:group ref="mathml:mi"/>
+ <xs:group ref="mathml:mn"/>
+ <xs:group ref="mathml:mo"/>
+ <xs:group ref="mathml:mtext"/>
+ <xs:element ref="mathml:mspace"/>
+ <xs:group ref="mathml:ms"/>
+ <xs:element ref="mathml:maligngroup"/>
+ <xs:element ref="mathml:malignmark"/>
+ <xs:group ref="mathml:mrow"/>
+ <xs:group ref="mathml:mfrac"/>
+ <xs:group ref="mathml:msqrt"/>
+ <xs:group ref="mathml:mroot"/>
+ <xs:group ref="mathml:mstyle"/>
+ <xs:group ref="mathml:merror"/>
+ <xs:group ref="mathml:mpadded"/>
+ <xs:group ref="mathml:mphantom"/>
+ <xs:group ref="mathml:mfenced"/>
+ <xs:group ref="mathml:menclose"/>
+ <xs:group ref="mathml:msub"/>
+ <xs:group ref="mathml:msup"/>
+ <xs:group ref="mathml:msubsup"/>
+ <xs:group ref="mathml:munder"/>
+ <xs:group ref="mathml:mover"/>
+ <xs:group ref="mathml:munderover"/>
+ <xs:group ref="mathml:mmultiscripts"/>
+ <xs:group ref="mathml:mtable"/>
+ <xs:group ref="mathml:mstack"/>
+ <xs:group ref="mathml:mlongdiv"/>
+ <xs:group ref="mathml:maction"/>
+ <xs:group ref="mathml:semantics_2"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="mathml:annotation"/>
@@ -17973,6 +18003,36 @@
<xs:element ref="mathml:pi"/>
<xs:element ref="mathml:eulergamma"/>
<xs:element ref="mathml:infinity"/>
+ <xs:group ref="mathml:mi"/>
+ <xs:group ref="mathml:mn"/>
+ <xs:group ref="mathml:mo"/>
+ <xs:group ref="mathml:mtext"/>
+ <xs:element ref="mathml:mspace"/>
+ <xs:group ref="mathml:ms"/>
+ <xs:element ref="mathml:maligngroup"/>
+ <xs:element ref="mathml:malignmark"/>
+ <xs:group ref="mathml:mrow"/>
+ <xs:group ref="mathml:mfrac"/>
+ <xs:group ref="mathml:msqrt"/>
+ <xs:group ref="mathml:mroot"/>
+ <xs:group ref="mathml:mstyle"/>
+ <xs:group ref="mathml:merror"/>
+ <xs:group ref="mathml:mpadded"/>
+ <xs:group ref="mathml:mphantom"/>
+ <xs:group ref="mathml:mfenced"/>
+ <xs:group ref="mathml:menclose"/>
+ <xs:group ref="mathml:msub"/>
+ <xs:group ref="mathml:msup"/>
+ <xs:group ref="mathml:msubsup"/>
+ <xs:group ref="mathml:munder"/>
+ <xs:group ref="mathml:mover"/>
+ <xs:group ref="mathml:munderover"/>
+ <xs:group ref="mathml:mmultiscripts"/>
+ <xs:group ref="mathml:mtable"/>
+ <xs:group ref="mathml:mstack"/>
+ <xs:group ref="mathml:mlongdiv"/>
+ <xs:group ref="mathml:maction"/>
+ <xs:group ref="mathml:semantics_2"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="mathml:annotation"/>

0 comments on commit 53aafe9

Please sign in to comment.