metanorma-cc 2.5.9 → 2.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e6f81d3d4b9527168daaf8debb0565c6546623baf3234732d2c000fb9441f5c
4
- data.tar.gz: 5099a781d393dad36085bd93c197d5bc5f6d4ef1fc89052653e84c6d6bd0ad07
3
+ metadata.gz: '0059fd922c7e0fc51d6f739a29f063bb43820a25f6b50450099c6f0211666d6d'
4
+ data.tar.gz: b25841bdfbabceedbdf6308bf06abffcbdae6f1dc60b9199d9f9ea971d4d7377
5
5
  SHA512:
6
- metadata.gz: 2eee82bd020dfb201a61169593c0855be44f5a7379d83a203b4d87223d67ff3e384f4a28e8e6c24fb7c16cdbacc8d7bd15e7183839140cc9c854efc87df43a4d
7
- data.tar.gz: e88aaa72da7a924488c3b786f6abeccc232fd9652c34d08ef6aeda37c13d630518318c5a581b86af43eaf5136d97cd57d1ae538e60e340c743b2029c015e366e
6
+ metadata.gz: a35cf0dad682ccbdb4752ba3c032f9413e18ca3c8834afd64dc54fa90a05747d96db029370364466c780a1861605b25d03a8d23988316246e6ca9552ed498492
7
+ data.tar.gz: 3b676c48af0d6d118197b5b460857d1597ee7ce258de07c9ce90511e8eefd384a62c335495bc43ee4f40e1233fdde1bcb75e1bfb4473a977385e7672b7f8ad09
@@ -679,8 +679,21 @@
679
679
 
680
680
  <!-- <xsl:strip-space elements="csd:xref"/> -->
681
681
 
682
- <xsl:variable name="namespace_full" select="namespace-uri(/*)"/> <!-- example: https://www.metanorma.org/ns/iso -->
683
- <xsl:variable name="root_element" select="local-name(/*)"/> <!-- example: iso-standard -->
682
+ <xsl:variable name="namespace_full_">
683
+ <xsl:choose>
684
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="namespace-uri(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
685
+ <xsl:otherwise><xsl:value-of select="namespace-uri(/*)"/></xsl:otherwise><!-- example: https://www.metanorma.org/ns/iso -->
686
+ </xsl:choose>
687
+ </xsl:variable>
688
+ <xsl:variable name="namespace_full" select="normalize-space($namespace_full_)"/>
689
+
690
+ <xsl:variable name="root_element_">
691
+ <xsl:choose>
692
+ <xsl:when test="local-name(/*) = 'metanorma-collection'"><xsl:value-of select="local-name(//*[contains(local-name(), '-standard')][1])"/></xsl:when>
693
+ <xsl:otherwise><xsl:value-of select="local-name(/*)"/></xsl:otherwise><!-- example: iso-standard -->
694
+ </xsl:choose>
695
+ </xsl:variable>
696
+ <xsl:variable name="root_element" select="normalize-space($root_element_)"/>
684
697
 
685
698
  <xsl:variable name="document_scheme" select="normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'document-scheme']/*[local-name() = 'value'])"/>
686
699
 
@@ -1819,6 +1832,9 @@
1819
1832
 
1820
1833
  </xsl:attribute-set>
1821
1834
 
1835
+ <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
1836
+ </xsl:attribute-set>
1837
+
1822
1838
  <xsl:attribute-set name="definition-style">
1823
1839
 
1824
1840
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
@@ -4038,7 +4054,9 @@
4038
4054
  <xsl:with-param name="element">
4039
4055
  <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
4040
4056
  <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
4057
+
4041
4058
  <xsl:copy-of select="$current_fn_number_text"/>
4059
+
4042
4060
  </fo:inline>
4043
4061
  </fo:basic-link>
4044
4062
  </xsl:with-param>
@@ -4057,8 +4075,7 @@
4057
4075
 
4058
4076
  <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
4059
4077
 
4060
- <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
4061
-
4078
+ <xsl:variable name="fn_block">
4062
4079
  <xsl:call-template name="refine_fn-body-style"/>
4063
4080
 
4064
4081
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
@@ -4066,9 +4083,15 @@
4066
4083
  <xsl:call-template name="refine_fn-body-num-style"/>
4067
4084
 
4068
4085
  <xsl:value-of select="$current_fn_number_text"/>
4086
+
4069
4087
  </fo:inline>
4070
4088
  <xsl:apply-templates/>
4071
- </fo:block>
4089
+ </xsl:variable>
4090
+
4091
+ <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
4092
+ <xsl:copy-of select="$fn_block"/>
4093
+ </fo:block>
4094
+
4072
4095
  </fo:block-container>
4073
4096
  </fo:footnote-body>
4074
4097
  </fo:footnote>
@@ -5457,6 +5480,12 @@
5457
5480
  </xsl:if>
5458
5481
  </xsl:template>
5459
5482
 
5483
+ <xsl:template match="*[local-name()='strike']">
5484
+ <fo:inline text-decoration="line-through">
5485
+ <xsl:apply-templates/>
5486
+ </fo:inline>
5487
+ </xsl:template>
5488
+
5460
5489
  <xsl:template match="*[local-name() = 'pagebreak']">
5461
5490
  <fo:block break-after="page"/>
5462
5491
  <fo:block> </fo:block>
@@ -10105,14 +10134,17 @@
10105
10134
  </fo:block>
10106
10135
  </xsl:template>
10107
10136
 
10108
- <xsl:template match="*[local-name() = 'domain']">
10137
+ <!-- <xsl:template match="*[local-name() = 'domain']"> -->
10109
10138
  <!-- https://github.com/metanorma/isodoc/issues/607
10110
10139
  <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
10111
10140
  <xsl:text> </xsl:text> -->
10112
- <xsl:if test="not(@hidden = 'true')">
10141
+ <!-- <xsl:if test="not(@hidden = 'true')">
10113
10142
  <xsl:apply-templates/>
10114
10143
  </xsl:if>
10115
- </xsl:template>
10144
+ </xsl:template> -->
10145
+
10146
+ <!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
10147
+ <xsl:template match="*[local-name() = 'domain']"/>
10116
10148
 
10117
10149
  <xsl:template match="*[local-name() = 'admitted']">
10118
10150
  <fo:block xsl:use-attribute-sets="admitted-style">
@@ -10127,9 +10159,11 @@
10127
10159
  </xsl:template>
10128
10160
 
10129
10161
  <xsl:template name="setStyle_preferred">
10130
- <xsl:if test="*[local-name() = 'strong']">
10131
- <xsl:attribute name="font-weight">normal</xsl:attribute>
10132
- </xsl:if>
10162
+
10163
+ <xsl:if test="*[local-name() = 'strong']">
10164
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
10165
+ </xsl:if>
10166
+
10133
10167
  </xsl:template>
10134
10168
 
10135
10169
  <!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
@@ -10139,6 +10173,17 @@
10139
10173
  </xsl:template>
10140
10174
  <!-- End Preferred, admitted, deprecated -->
10141
10175
 
10176
+ <xsl:template match="*[local-name() = 'fmt-related']">
10177
+ <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
10178
+ <xsl:apply-templates/>
10179
+ </fo:block>
10180
+ </xsl:template>
10181
+ <xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
10182
+ <fo:block>
10183
+ <xsl:apply-templates/>
10184
+ </fo:block>
10185
+ </xsl:template>
10186
+
10142
10187
  <!-- ========== -->
10143
10188
  <!-- definition -->
10144
10189
  <!-- ========== -->
@@ -11043,6 +11088,7 @@
11043
11088
 
11044
11089
  <!-- Normative references -->
11045
11090
  <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
11091
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
11046
11092
 
11047
11093
  <fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
11048
11094
 
@@ -11764,7 +11810,8 @@
11764
11810
  <!-- add @id - first element with @id plus '_element_name' -->
11765
11811
  <xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
11766
11812
  <xsl:variable name="prefix_id"><xsl:value-of select="$prefix_id_"/><xsl:if test="normalize-space($prefix_id_) = ''"><xsl:value-of select="generate-id()"/></xsl:if></xsl:variable>
11767
- <xsl:attribute name="id"><xsl:value-of select="$prefix_id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
11813
+ <xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
11814
+ <xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
11768
11815
  </xsl:if>
11769
11816
  </xsl:template>
11770
11817
 
@@ -11821,6 +11868,31 @@
11821
11868
  <xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
11822
11869
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
11823
11870
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
11871
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
11872
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
11873
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
11874
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
11875
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
11876
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
11877
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
11878
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
11879
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
11880
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
11881
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
11882
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
11883
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
11884
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
11885
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
11886
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
11887
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
11888
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
11889
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
11890
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
11891
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
11892
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
11893
+
11894
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
11895
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
11824
11896
 
11825
11897
  <xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
11826
11898
  <xsl:copy>
@@ -11865,6 +11937,94 @@
11865
11937
  </xsl:element>
11866
11938
  </xsl:template>
11867
11939
 
11940
+ <xsl:template match="*[local-name() = 'fmt-preferred']"/>
11941
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
11942
+ <xsl:apply-templates mode="update_xml_step1"/>
11943
+ </xsl:template>
11944
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
11945
+ <xsl:element name="preferred" namespace="{$namespace_full}">
11946
+ <xsl:copy-of select="@*"/>
11947
+ <xsl:apply-templates mode="update_xml_step1"/>
11948
+ </xsl:element>
11949
+ </xsl:template>
11950
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
11951
+ <xsl:apply-templates mode="update_xml_pres"/>
11952
+ </xsl:template>
11953
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
11954
+ <xsl:element name="preferred" namespace="{$namespace_full}">
11955
+ <xsl:copy-of select="@*"/>
11956
+ <xsl:apply-templates mode="update_xml_pres"/>
11957
+ </xsl:element>
11958
+ </xsl:template>
11959
+
11960
+ <xsl:template match="*[local-name() = 'fmt-admitted']"/>
11961
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
11962
+ <xsl:apply-templates mode="update_xml_step1"/>
11963
+ </xsl:template>
11964
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
11965
+ <xsl:element name="admitted" namespace="{$namespace_full}">
11966
+ <xsl:copy-of select="@*"/>
11967
+ <xsl:apply-templates mode="update_xml_step1"/>
11968
+ </xsl:element>
11969
+ </xsl:template>
11970
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
11971
+ <xsl:apply-templates mode="update_xml_pres"/>
11972
+ </xsl:template>
11973
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
11974
+ <xsl:element name="admitted" namespace="{$namespace_full}">
11975
+ <xsl:copy-of select="@*"/>
11976
+ <xsl:apply-templates mode="update_xml_pres"/>
11977
+ </xsl:element>
11978
+ </xsl:template>
11979
+
11980
+ <xsl:template match="*[local-name() = 'fmt-deprecates']"/>
11981
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
11982
+ <xsl:apply-templates mode="update_xml_step1"/>
11983
+ </xsl:template>
11984
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
11985
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
11986
+ <xsl:copy-of select="@*"/>
11987
+ <xsl:apply-templates mode="update_xml_step1"/>
11988
+ </xsl:element>
11989
+ </xsl:template>
11990
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
11991
+ <xsl:apply-templates mode="update_xml_pres"/>
11992
+ </xsl:template>
11993
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
11994
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
11995
+ <xsl:copy-of select="@*"/>
11996
+ <xsl:apply-templates mode="update_xml_pres"/>
11997
+ </xsl:element>
11998
+ </xsl:template>
11999
+
12000
+ <xsl:template match="*[local-name() = 'fmt-definition']"/>
12001
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
12002
+ <xsl:element name="definition" namespace="{$namespace_full}">
12003
+ <xsl:copy-of select="@*"/>
12004
+ <xsl:apply-templates mode="update_xml_step1"/>
12005
+ </xsl:element>
12006
+ </xsl:template>
12007
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
12008
+ <xsl:element name="definition" namespace="{$namespace_full}">
12009
+ <xsl:copy-of select="@*"/>
12010
+ <xsl:apply-templates mode="update_xml_pres"/>
12011
+ </xsl:element>
12012
+ </xsl:template>
12013
+
12014
+ <xsl:template match="*[local-name() = 'fmt-termsource']"/>
12015
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
12016
+ <xsl:element name="termsource" namespace="{$namespace_full}">
12017
+ <xsl:copy-of select="@*"/>
12018
+ <xsl:apply-templates mode="update_xml_step1"/>
12019
+ </xsl:element>
12020
+ </xsl:template>
12021
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
12022
+ <xsl:element name="termsource" namespace="{$namespace_full}">
12023
+ <xsl:copy-of select="@*"/>
12024
+ <xsl:apply-templates mode="update_xml_pres"/>
12025
+ </xsl:element>
12026
+ </xsl:template>
12027
+
11868
12028
  <xsl:template match="*[local-name() = 'span'][ @class = 'fmt-caption-label' or @class = 'fmt-element-name' or @class = 'fmt-caption-delim' or @class = 'fmt-autonum-delim']" mode="update_xml_step1" priority="3">
11869
12029
  <xsl:apply-templates mode="update_xml_step1"/>
11870
12030
  </xsl:template>
@@ -12996,7 +13156,7 @@
12996
13156
  </xsl:template>
12997
13157
 
12998
13158
  <xsl:template name="namespaceCheck">
12999
- <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
13159
+ <xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
13000
13160
  <xsl:variable name="XSLNS">
13001
13161
 
13002
13162
  <xsl:value-of select="document('')//*/namespace::csd"/>
@@ -13086,6 +13246,9 @@
13086
13246
  <xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
13087
13247
  <xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13088
13248
  </xsl:when>
13249
+ <xsl:when test="string-length($bibdata_updated) != ''">
13250
+ <xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13251
+ </xsl:when>
13089
13252
  <xsl:when test="$formatted = 'true'">
13090
13253
  <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
13091
13254
  </xsl:when>
@@ -267,11 +267,11 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
267
267
  <a:documentation>An identifier of the person according to an international identifier scheme</a:documentation>
268
268
  </ref>
269
269
  </zeroOrMore>
270
- <zeroOrMore>
270
+ <optional>
271
271
  <ref name="contact">
272
272
  <a:documentation>Contact information for the person, including URI, address, phone number, and email</a:documentation>
273
273
  </ref>
274
- </zeroOrMore>
274
+ </optional>
275
275
  </element>
276
276
  </define>
277
277
  <define name="fullname">
@@ -454,11 +454,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
454
454
  <a:documentation>An identifier of the organization according to an international identifier scheme</a:documentation>
455
455
  </ref>
456
456
  </zeroOrMore>
457
- <zeroOrMore>
457
+ <optional>
458
458
  <ref name="contact">
459
459
  <a:documentation>Contact information for the organization, including address, phone number, and email</a:documentation>
460
460
  </ref>
461
- </zeroOrMore>
461
+ </optional>
462
462
  <optional>
463
463
  <ref name="logo">
464
464
  <a:documentation>A logo for the organization</a:documentation>
@@ -540,12 +540,18 @@ real names (if the person is named with a pseudonym or user name); previous lega
540
540
  <!-- TODO may change -->
541
541
  <define name="contact">
542
542
  <a:documentation>Contact information for a person or organization</a:documentation>
543
- <choice>
543
+ <zeroOrMore>
544
544
  <ref name="address"/>
545
+ </zeroOrMore>
546
+ <zeroOrMore>
545
547
  <ref name="phone"/>
548
+ </zeroOrMore>
549
+ <zeroOrMore>
546
550
  <ref name="email"/>
551
+ </zeroOrMore>
552
+ <zeroOrMore>
547
553
  <ref name="uri"/>
548
- </choice>
554
+ </zeroOrMore>
549
555
  </define>
550
556
  <define name="phone">
551
557
  <a:documentation>The phone number associated with a person or organization</a:documentation>
@@ -1271,17 +1277,17 @@ for which this claim of validity is made, if applicable</a:documentation>
1271
1277
  </define>
1272
1278
  <define name="validityBegins">
1273
1279
  <element name="validityBegins">
1274
- <ref name="ISO8601DateTime"/>
1280
+ <ref name="ISO8601Date"/>
1275
1281
  </element>
1276
1282
  </define>
1277
1283
  <define name="validityEnds">
1278
1284
  <element name="validityEnds">
1279
- <ref name="ISO8601DateTime"/>
1285
+ <ref name="ISO8601Date"/>
1280
1286
  </element>
1281
1287
  </define>
1282
1288
  <define name="validityRevision">
1283
1289
  <element name="revision">
1284
- <ref name="ISO8601DateTime"/>
1290
+ <ref name="ISO8601Date"/>
1285
1291
  </element>
1286
1292
  </define>
1287
1293
  <define name="TypedTitleString">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cc
3
- VERSION = "2.5.9".freeze
3
+ VERSION = "2.5.11".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.9
4
+ version: 2.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-23 00:00:00.000000000 Z
11
+ date: 2025-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -243,7 +243,7 @@ homepage: https://github.com/metanorma/metanorma-cc
243
243
  licenses:
244
244
  - BSD-2-Clause
245
245
  metadata: {}
246
- post_install_message:
246
+ post_install_message:
247
247
  rdoc_options: []
248
248
  require_paths:
249
249
  - lib
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  requirements: []
261
261
  rubygems_version: 3.3.27
262
- signing_key:
262
+ signing_key:
263
263
  specification_version: 4
264
264
  summary: metanorma-cc lets you write CalConnect standards in AsciiDoc.
265
265
  test_files: []