lib/asciidoctor/generic/basicdoc.rng in metanorma-generic-1.8.0 vs lib/asciidoctor/generic/basicdoc.rng in metanorma-generic-1.8.1

- old
+ new

@@ -594,10 +594,11 @@ <ref name="hr"/> <ref name="pagebreak"/> <ref name="bookmark"/> <ref name="image"/> <ref name="index"/> + <ref name="index-xref"/> </choice> </define> <define name="PureTextElement"> <choice> <text/> @@ -726,16 +727,62 @@ <empty/> </element> </define> <define name="index"> <element name="index"> - <attribute name="primary"/> + <attribute name="to"> + <data type="IDREF"/> + </attribute> + <element name="primary"> + <oneOrMore> + <ref name="PureTextElement"/> + </oneOrMore> + </element> <optional> - <attribute name="secondary"/> + <element name="secondary"> + <oneOrMore> + <ref name="PureTextElement"/> + </oneOrMore> + </element> </optional> <optional> - <attribute name="tertiary"/> + <element name="tertiary"> + <oneOrMore> + <ref name="PureTextElement"/> + </oneOrMore> + </element> </optional> + </element> + </define> + <define name="index-xref"> + <element name="index-xref"> + <attribute name="also"> + <data type="boolean"/> + </attribute> + <element name="primary"> + <oneOrMore> + <ref name="PureTextElement"/> + </oneOrMore> + </element> + <optional> + <element name="secondary"> + <oneOrMore> + <ref name="PureTextElement"/> + </oneOrMore> + </element> + </optional> + <optional> + <element name="tertiary"> + <oneOrMore> + <ref name="PureTextElement"/> + </oneOrMore> + </element> + </optional> + <element name="target"> + <oneOrMore> + <ref name="PureTextElement"/> + </oneOrMore> + </element> </element> </define> <!-- bare ID element, used for referencing arbitrary spans of text --> <define name="bookmark"> <element name="bookmark">