grammars/biblio.rng in relaton-calconnect-1.0.1 vs grammars/biblio.rng in relaton-calconnect-1.1.0
- old
+ new
@@ -86,20 +86,30 @@
<attribute name="number"/>
</optional>
<text/>
</element>
</define>
- <define name="LocalizedString">
+ <define name="LocalizedString1">
<optional>
<!-- multiple languages and scripts possible: comma delimit them if so -->
<attribute name="language"/>
</optional>
<optional>
<attribute name="script"/>
</optional>
<text/>
</define>
+ <define name="LocalizedString">
+ <choice>
+ <ref name="LocalizedString1"/>
+ <oneOrMore>
+ <element name="variant">
+ <ref name="LocalizedString1"/>
+ </element>
+ </oneOrMore>
+ </choice>
+ </define>
<!--
Unlike UML, change type to format: type is overloaded
Would be need if plain were default value and could omit the attribute
Added LocalizedStringOrXsAny
-->
@@ -119,11 +129,11 @@
</choice>
</attribute>
</optional>
<ref name="LocalizedStringOrXsAny"/>
</define>
- <define name="LocalizedStringOrXsAny">
+ <define name="LocalizedStringOrXsAny1">
<optional>
<!-- multiple languages and scripts possible: comma delimit them if so -->
<attribute name="language"/>
</optional>
<optional>
@@ -134,10 +144,20 @@
<text/>
<ref name="AnyElement"/>
</choice>
</oneOrMore>
</define>
+ <define name="LocalizedStringOrXsAny">
+ <choice>
+ <ref name="LocalizedStringOrXsAny1"/>
+ <oneOrMore>
+ <element name="variant">
+ <ref name="LocalizedStringOrXsAny1"/>
+ </element>
+ </oneOrMore>
+ </choice>
+ </define>
<define name="contributor">
<element name="contributor">
<zeroOrMore>
<ref name="role"/>
</zeroOrMore>
@@ -639,13 +659,13 @@
<ref name="bibabstract"/>
</zeroOrMore>
<optional>
<ref name="status"/>
</optional>
- <optional>
+ <zeroOrMore>
<ref name="copyright"/>
- </optional>
+ </zeroOrMore>
<zeroOrMore>
<ref name="docrelation"/>
</zeroOrMore>
<zeroOrMore>
<ref name="series"/>
@@ -999,10 +1019,20 @@
<element name="copyright">
<ref name="from"/>
<optional>
<ref name="to"/>
</optional>
- <ref name="owner"/>
+ <oneOrMore>
+ <ref name="owner"/>
+ </oneOrMore>
+ <optional>
+ <ref name="copyright_scope"/>
+ </optional>
+ </element>
+ </define>
+ <define name="copyright_scope">
+ <element name="scope">
+ <text/>
</element>
</define>
<define name="from">
<element name="from">
<data type="gYear"/>