lib/asciidoctor/mpfd/isodoc.rng in metanorma-mpfd-0.3.21 vs lib/asciidoctor/mpfd/isodoc.rng in metanorma-mpfd-0.3.22

- old
+ new

@@ -62,10 +62,89 @@ </attribute> </optional> <text/> </element> </define> + <define name="ul"> + <element name="ul"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <oneOrMore> + <ref name="li"/> + </oneOrMore> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> + <define name="ol"> + <element name="ol"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <attribute name="type"> + <choice> + <value>roman</value> + <value>alphabet</value> + <value>arabic</value> + <value>roman_upper</value> + <value>alphabet_upper</value> + </choice> + </attribute> + <oneOrMore> + <ref name="li"/> + </oneOrMore> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> + <define name="dl"> + <element name="dl"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <oneOrMore> + <ref name="dt"/> + <ref name="dd"/> + </oneOrMore> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> <define name="example"> <element name="example"> <attribute name="id"> <data type="ID"/> </attribute> @@ -76,10 +155,23 @@ </optional> <optional> <attribute name="subsequence"/> </optional> <optional> + <attribute name="number"/> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <optional> <ref name="tname"/> </optional> <oneOrMore> <choice> <ref name="formula"/> @@ -95,10 +187,300 @@ <zeroOrMore> <ref name="note"/> </zeroOrMore> </element> </define> + <define name="table"> + <element name="table"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="unnumbered"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="number"/> + </optional> + <optional> + <attribute name="subsequence"/> + </optional> + <optional> + <attribute name="alt"/> + </optional> + <optional> + <attribute name="summary"/> + </optional> + <optional> + <attribute name="uri"> + <data type="anyURI"/> + </attribute> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <ref name="tname"/> + </optional> + <optional> + <ref name="thead"/> + </optional> + <ref name="tbody"/> + <optional> + <ref name="tfoot"/> + </optional> + <zeroOrMore> + <ref name="table-note"/> + </zeroOrMore> + <optional> + <ref name="dl"/> + </optional> + </element> + </define> + <define name="figure"> + <element name="figure"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="unnumbered"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="number"/> + </optional> + <optional> + <attribute name="subsequence"/> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="class"/> + </optional> + <optional> + <ref name="source"/> + </optional> + <optional> + <ref name="tname"/> + </optional> + <choice> + <ref name="image"/> + <ref name="video"/> + <ref name="audio"/> + <ref name="pre"/> + <oneOrMore> + <ref name="paragraph-with-footnote"/> + </oneOrMore> + <zeroOrMore> + <ref name="figure"/> + </zeroOrMore> + </choice> + <zeroOrMore> + <ref name="fn"/> + </zeroOrMore> + <optional> + <ref name="dl"/> + </optional> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> + <define name="sourcecode"> + <element name="sourcecode"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="unnumbered"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="number"/> + </optional> + <optional> + <attribute name="subsequence"/> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="lang"/> + </optional> + <optional> + <ref name="tname"/> + </optional> + <oneOrMore> + <choice> + <text/> + <ref name="callout"/> + </choice> + </oneOrMore> + <zeroOrMore> + <ref name="annotation"/> + </zeroOrMore> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> + <define name="formula"> + <element name="formula"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="unnumbered"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="number"/> + </optional> + <optional> + <attribute name="subsequence"/> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="inequality"> + <data type="boolean"/> + </attribute> + </optional> + <ref name="stem"/> + <optional> + <ref name="dl"/> + </optional> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> + <define name="ParagraphType"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="align"> + <ref name="Alignments"/> + </attribute> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <zeroOrMore> + <ref name="TextElement"/> + </zeroOrMore> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </define> + <define name="paragraph-with-footnote"> + <element name="p"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="align"> + <ref name="Alignments"/> + </attribute> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <zeroOrMore> + <choice> + <ref name="TextElement"/> + <ref name="fn"/> + </choice> + </zeroOrMore> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> + <define name="quote"> + <element name="quote"> + <attribute name="id"> + <data type="ID"/> + </attribute> + <optional> + <attribute name="alignment"> + <ref name="Alignments"/> + </attribute> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <ref name="quote-source"/> + </optional> + <optional> + <ref name="quote-author"/> + </optional> + <oneOrMore> + <ref name="paragraph-with-footnote"/> + </oneOrMore> + <zeroOrMore> + <ref name="note"/> + </zeroOrMore> + </element> + </define> <define name="BibDataExtensionType"> <ref name="doctype"/> <optional> <ref name="editorialgroup"/> </optional> @@ -163,10 +545,34 @@ <define name="note"> <element name="note"> <attribute name="id"> <data type="ID"/> </attribute> + <optional> + <attribute name="unnumbered"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="number"/> + </optional> + <optional> + <attribute name="subsequence"/> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="type"/> + </optional> <oneOrMore> <choice> <ref name="paragraph"/> <ref name="ul"/> <ref name="ol"/> @@ -908,9 +1314,30 @@ <define name="termnote"> <element name="termnote"> <attribute name="id"> <data type="ID"/> </attribute> + <optional> + <attribute name="unnumbered"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="number"/> + </optional> + <optional> + <attribute name="subsequence"/> + </optional> + <optional> + <attribute name="keep-with-next"> + <data type="boolean"/> + </attribute> + </optional> + <optional> + <attribute name="keep-lines-together"> + <data type="boolean"/> + </attribute> + </optional> <oneOrMore> <choice> <ref name="paragraph"/> <ref name="ul"/> <ref name="ol"/>