summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rng/xhtml-basic-table.rng
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/schema/rng/xhtml-basic-table.rng')
-rw-r--r--Master/texmf-dist/source/latex/stex/schema/rng/xhtml-basic-table.rng146
1 files changed, 146 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/stex/schema/rng/xhtml-basic-table.rng b/Master/texmf-dist/source/latex/stex/schema/rng/xhtml-basic-table.rng
new file mode 100644
index 00000000000..ab51f61c17f
--- /dev/null
+++ b/Master/texmf-dist/source/latex/stex/schema/rng/xhtml-basic-table.rng
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+ <!-- Basic Tables Module -->
+ <define name="table">
+ <element name="table">
+ <interleave>
+ <ref name="table.attlist"/>
+ <optional>
+ <ref name="caption"/>
+ </optional>
+ <oneOrMore>
+ <ref name="tr"/>
+ </oneOrMore>
+ </interleave>
+ </element>
+ </define>
+ <define name="table.attlist">
+ <interleave>
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="summary">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="caption">
+ <element name="caption">
+ <ref name="caption.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+ </define>
+ <define name="caption.attlist">
+ <ref name="Common.attrib"/>
+ </define>
+ <define name="tr">
+ <element name="tr">
+ <interleave>
+ <ref name="tr.attlist"/>
+ <oneOrMore>
+ <choice>
+ <ref name="th"/>
+ <ref name="td"/>
+ </choice>
+ </oneOrMore>
+ </interleave>
+ </element>
+ </define>
+ <define name="tr.attlist">
+ <interleave>
+ <ref name="Common.attrib"/>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+ </interleave>
+ </define>
+ <define name="th">
+ <element name="th">
+ <interleave>
+ <ref name="th.attlist"/>
+ <ref name="Flow.model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="th.attlist">
+ <ref name="Cell.attrib"/>
+ </define>
+ <define name="td">
+ <element name="td">
+ <interleave>
+ <ref name="td.attlist"/>
+ <ref name="Flow.model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="td.attlist">
+ <ref name="Cell.attrib"/>
+ </define>
+ <define name="Cell.attrib">
+ <interleave>
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="abbr">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="axis"/>
+ </optional>
+ <optional>
+ <attribute name="headers">
+ <ref name="IDREFS.datatype"/>
+ </attribute>
+ </optional>
+ <ref name="scope.attrib"/>
+ <optional>
+ <attribute name="rowspan">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="colspan">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+ </interleave>
+ </define>
+ <define name="CellHAlign.attrib">
+ <optional>
+ <attribute name="align">
+ <choice>
+ <value>left</value>
+ <value>center</value>
+ <value>right</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+ <define name="CellVAlign.attrib">
+ <optional>
+ <attribute name="valign">
+ <choice>
+ <value>top</value>
+ <value>middle</value>
+ <value>bottom</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+ <define name="scope.attrib">
+ <optional>
+ <attribute name="scope">
+ <choice>
+ <value>row</value>
+ <value>col</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+ <define name="Block.class" combine="interleave">
+ <zeroOrMore>
+ <ref name="table"/>
+ </zeroOrMore>
+ </define>
+</grammar>