grammars/biblio-standoc.rng in relaton-iso-bib-1.17.0 vs grammars/biblio-standoc.rng in relaton-iso-bib-1.18.0
- old
+ new
@@ -7,15 +7,46 @@
Specialisations as for biblio.rnc. Extension point can be redefined completely for a flavour of standoc
(SDO); but other elements in Bibdata can only be extended (more specialised vocabularies for Bibdata)
-->
<include href="biblio.rng">
<define name="BibData">
- <ref name="BibliographicItem"/>
+ <ref name="StandardBibliographicItem"/>
<optional>
<ref name="ext"/>
</optional>
</define>
+ <define name="docrelation">
+ <element name="relation">
+ <attribute name="type">
+ <ref name="DocRelationType"/>
+ </attribute>
+ <optional>
+ <element name="description">
+ <ref name="FormattedString"/>
+ </element>
+ </optional>
+ <element name="bibitem">
+ <ref name="StandardReducedBibliographicItem"/>
+ </element>
+ <choice>
+ <zeroOrMore>
+ <ref name="locality"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="localityStack"/>
+ </zeroOrMore>
+ </choice>
+ <choice>
+ <zeroOrMore>
+ <ref name="sourceLocality"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="sourceLocalityStack"/>
+ </zeroOrMore>
+ </choice>
+ </element>
+ </define>
</include>
<define name="ext">
<element name="ext">
<ref name="BibDataExtensionType"/>
</element>
@@ -158,7 +189,19 @@
<element name="year">
<text/>
</element>
</optional>
</element>
+ </define>
+ <define name="StandardBibliographicItem">
+ <ref name="BibliographicItem"/>
+ <zeroOrMore>
+ <ref name="amend"/>
+ </zeroOrMore>
+ </define>
+ <define name="StandardReducedBibliographicItem">
+ <ref name="ReducedBibliographicItem"/>
+ <zeroOrMore>
+ <ref name="amend"/>
+ </zeroOrMore>
</define>
</grammar>