lib/metanorma/generic/basicdoc.rng in metanorma-generic-2.5.2 vs lib/metanorma/generic/basicdoc.rng in metanorma-generic-2.5.3
- old
+ new
@@ -344,10 +344,12 @@
<ref name="eref"/>
<ref name="stem"/>
<ref name="keyword"/>
<ref name="xref"/>
<ref name="hyperlink"/>
+ <ref name="index"/>
+ <ref name="index-xref"/>
</choice>
</oneOrMore>
</element>
</define>
<define name="thead">
@@ -621,10 +623,12 @@
<ref name="PureTextElement"/>
<ref name="stem"/>
<ref name="eref"/>
<ref name="xref"/>
<ref name="hyperlink"/>
+ <ref name="index"/>
+ <ref name="index-xref"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="strong">
@@ -634,10 +638,12 @@
<ref name="PureTextElement"/>
<ref name="stem"/>
<ref name="eref"/>
<ref name="xref"/>
<ref name="hyperlink"/>
+ <ref name="index"/>
+ <ref name="index-xref"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="tt">
@@ -646,18 +652,24 @@
<choice>
<ref name="PureTextElement"/>
<ref name="eref"/>
<ref name="xref"/>
<ref name="hyperlink"/>
+ <ref name="index"/>
+ <ref name="index-xref"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="keyword">
<element name="keyword">
<zeroOrMore>
- <ref name="PureTextElement"/>
+ <choice>
+ <ref name="PureTextElement"/>
+ <ref name="index"/>
+ <ref name="index-xref"/>
+ </choice>
</zeroOrMore>
</element>
</define>
<define name="sub">
<element name="sub">
@@ -674,11 +686,15 @@
</element>
</define>
<define name="strike">
<element name="strike">
<zeroOrMore>
- <ref name="PureTextElement"/>
+ <choice>
+ <ref name="PureTextElement"/>
+ <ref name="index"/>
+ <ref name="index-xref"/>
+ </choice>
</zeroOrMore>
</element>
</define>
<define name="underline">
<element name="underline">
@@ -896,47 +912,50 @@
so <callout target="xyz">1</callout>
corresponds to <xref type="callout" target="xyz">1</xref>
-->
<define name="image">
<element name="image">
- <attribute name="id">
- <data type="ID"/>
+ <ref name="Image"/>
+ </element>
+ </define>
+ <define name="Image">
+ <attribute name="id">
+ <data type="ID"/>
+ </attribute>
+ <attribute name="src">
+ <data type="anyURI"/>
+ </attribute>
+ <attribute name="mimetype"/>
+ <optional>
+ <attribute name="filename"/>
+ </optional>
+ <optional>
+ <attribute name="width">
+ <choice>
+ <data type="int"/>
+ <value>auto</value>
+ </choice>
</attribute>
- <attribute name="src">
+ </optional>
+ <optional>
+ <attribute name="height">
+ <choice>
+ <data type="int"/>
+ <value>auto</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="alt"/>
+ </optional>
+ <optional>
+ <attribute name="title"/>
+ </optional>
+ <optional>
+ <attribute name="longdesc">
<data type="anyURI"/>
</attribute>
- <attribute name="mimetype"/>
- <optional>
- <attribute name="filename"/>
- </optional>
- <optional>
- <attribute name="width">
- <choice>
- <data type="int"/>
- <value>auto</value>
- </choice>
- </attribute>
- </optional>
- <optional>
- <attribute name="height">
- <choice>
- <data type="int"/>
- <value>auto</value>
- </choice>
- </attribute>
- </optional>
- <optional>
- <attribute name="alt"/>
- </optional>
- <optional>
- <attribute name="title"/>
- </optional>
- <optional>
- <attribute name="longdesc">
- <data type="anyURI"/>
- </attribute>
- </optional>
- </element>
+ </optional>
</define>
<define name="video">
<element name="video">
<attribute name="id">
<data type="ID"/>