metanorma-cc 2.5.5 → 2.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e22f11cfa5e2e467e47a6d442c7818f76b45f919026461a5263bbaf346b376ff
4
- data.tar.gz: 465e093c6cf1e1312bc5769b8177d7a8f7931b81b0ff32b9b568fd0d221c72d7
3
+ metadata.gz: cdee98655f21152c7fb1523b8ccba8af7a4b887f82439c3cb397a3726ce932ce
4
+ data.tar.gz: e3a9bddee0dc3d95c62981ea333b89533bf9bf0146637b955b4ac8c1c79fa92f
5
5
  SHA512:
6
- metadata.gz: 0663d0949e1f1b2e23a825772f4dadba6de3263f8c21d8ddcc3d60e5647639c3fec12ad92325b2d5d09b1f2cd2a89988929959edd11c11e8c7ce8ba9ea0813cb
7
- data.tar.gz: aca4755276d4e110ab4d9f51f9b0d2be5d5932b2bcd03b437705f848ec4f549f9b2864f5d0e897f37f215388b4a7ae5691ce80d45e26f8e7f823873992b0f4a9
6
+ metadata.gz: 532ed62afb3d428e10cae116d10d5f236dfa1684a929980d75bcfce9d75eda5518e10e11ffe65b228f849910289c95b910ae78c337dd48472a82dc56350cc367
7
+ data.tar.gz: '05999ea26e85ad7bdcf2b5675141a78182a4edfb7aaebfcc5c45e025aa69e1c615e892970a77499b6a948bb814254d4a952699020046c0b3cd81842d8736e93e'
@@ -4130,6 +4130,11 @@
4130
4130
 
4131
4131
  <xsl:value-of select="@reference"/>
4132
4132
 
4133
+ <!-- commented https://github.com/metanorma/isodoc/issues/614 -->
4134
+ <!-- <xsl:if test="$namespace = 'itu'">
4135
+ <xsl:text>)</xsl:text>
4136
+ </xsl:if> -->
4137
+
4133
4138
  </fo:inline>
4134
4139
  <fo:inline xsl:use-attribute-sets="table-fn-body-style">
4135
4140
  <xsl:copy-of select="./node()"/>
@@ -4139,7 +4144,7 @@
4139
4144
 
4140
4145
  </xsl:if>
4141
4146
  </xsl:for-each>
4142
- </xsl:template>
4147
+ </xsl:template> <!-- table_fn_display -->
4143
4148
 
4144
4149
  <xsl:template name="create_fn">
4145
4150
  <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
@@ -4167,8 +4172,10 @@
4167
4172
  <!-- EMD table's footnotes rendering -->
4168
4173
  <!-- ============================ -->
4169
4174
 
4175
+ <!-- ============================ -->
4170
4176
  <!-- figure's footnotes rendering -->
4171
- <xsl:template name="fn_display_figure">
4177
+ <!-- ============================ -->
4178
+ <xsl:template name="fn_display_figure"> <!-- figure_fn_display -->
4172
4179
 
4173
4180
  <!-- current figure id -->
4174
4181
  <xsl:variable name="figure_id_">
@@ -4281,9 +4288,28 @@
4281
4288
 
4282
4289
  </fo:block>
4283
4290
  </xsl:if>
4284
-
4285
4291
  </xsl:template> <!-- fn_display_figure -->
4286
4292
 
4293
+ <!-- added for https://github.com/metanorma/isodoc/issues/607 -->
4294
+ <!-- figure's footnote label -->
4295
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'dl'][@key = 'true']/*[local-name() = 'dt']/ *[local-name() = 'p'][count(node()[normalize-space() != '']) = 1]/*[local-name() = 'sup']" priority="3">
4296
+ <xsl:variable name="key_iso">
4297
+
4298
+ </xsl:variable>
4299
+ <xsl:if test="normalize-space($key_iso) = 'true'">
4300
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
4301
+
4302
+ </xsl:if>
4303
+ <fo:inline xsl:use-attribute-sets="figure-fn-number-style"> <!-- id="{@id}" -->
4304
+ <!-- <xsl:value-of select="@reference"/> -->
4305
+ <xsl:apply-templates/>
4306
+ </fo:inline>
4307
+ </xsl:template>
4308
+
4309
+ <!-- ============================ -->
4310
+ <!-- END: figure's footnotes rendering -->
4311
+ <!-- ============================ -->
4312
+
4287
4313
  <!-- fn reference in the text rendering (for instance, 'some text 1) some text' ) -->
4288
4314
  <xsl:template match="*[local-name()='fn']">
4289
4315
  <fo:inline xsl:use-attribute-sets="fn-reference-style">
@@ -4299,6 +4325,10 @@
4299
4325
 
4300
4326
  <xsl:value-of select="@reference"/>
4301
4327
 
4328
+ <!-- commented, https://github.com/metanorma/isodoc/issues/614 -->
4329
+ <!-- <xsl:if test="$namespace = 'jis'">
4330
+ <fo:inline font-weight="normal">)</fo:inline>
4331
+ </xsl:if> -->
4302
4332
  </fo:basic-link>
4303
4333
  </fo:inline>
4304
4334
  </xsl:template>
@@ -4425,17 +4455,22 @@
4425
4455
  </fo:block>
4426
4456
  </xsl:when> <!-- END: a few components -->
4427
4457
  <xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')"> <!-- definition list in a figure -->
4428
- <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
4458
+ <!-- Presentation XML contains 'Key' caption, https://github.com/metanorma/isodoc/issues/607 -->
4459
+ <xsl:if test="not(preceding-sibling::*[1][local-name() = 'p' and @keep-with-next])"> <!-- for old Presentation XML -->
4429
4460
 
4430
- <xsl:call-template name="refine_figure_key_style"/>
4461
+ <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
4431
4462
 
4432
- <xsl:variable name="title-key">
4433
- <xsl:call-template name="getLocalizedString">
4434
- <xsl:with-param name="key">key</xsl:with-param>
4435
- </xsl:call-template>
4436
- </xsl:variable>
4437
- <xsl:value-of select="$title-key"/>
4438
- </fo:block>
4463
+ <xsl:call-template name="refine_figure_key_style"/>
4464
+
4465
+ <xsl:variable name="title-key">
4466
+ <xsl:call-template name="getLocalizedString">
4467
+ <xsl:with-param name="key">key</xsl:with-param>
4468
+ </xsl:call-template>
4469
+ </xsl:variable>
4470
+ <xsl:value-of select="$title-key"/>
4471
+ </fo:block>
4472
+
4473
+ </xsl:if>
4439
4474
  </xsl:when> <!-- END: definition list in a figure -->
4440
4475
  </xsl:choose>
4441
4476
 
@@ -4621,6 +4656,14 @@
4621
4656
 
4622
4657
  </xsl:template> <!-- END: dl -->
4623
4658
 
4659
+ <!-- caption for figure key and another caption, https://github.com/metanorma/isodoc/issues/607 -->
4660
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'p'][@keep-with-next = 'true' and *[local-name() = 'strong']]" priority="3">
4661
+ <fo:block text-align="left" margin-bottom="12pt" keep-with-next="always">
4662
+ <xsl:call-template name="refine_figure_key_style"/>
4663
+ <xsl:apply-templates/>
4664
+ </fo:block>
4665
+ </xsl:template>
4666
+
4624
4667
  <xsl:template name="refine_dl_formula_where_style">
4625
4668
 
4626
4669
  </xsl:template> <!-- refine_dl_formula_where_style -->
@@ -6654,6 +6697,39 @@
6654
6697
  </xsl:copy>
6655
6698
  </xsl:template>
6656
6699
 
6700
+ <xsl:template match="@*|node()" mode="mathml_linebreak">
6701
+ <xsl:copy>
6702
+ <xsl:apply-templates select="@*|node()" mode="mathml_linebreak"/>
6703
+ </xsl:copy>
6704
+ </xsl:template>
6705
+
6706
+ <!-- split math into two math -->
6707
+ <xsl:template match="mathml:mo[@linebreak] | mathml:mspace[@linebreak]" mode="mathml_linebreak">
6708
+ <xsl:variable name="math_elements_tree_">
6709
+ <xsl:for-each select="ancestor::*[ancestor-or-self::mathml:math]">
6710
+ <element pos="{position()}">
6711
+ <xsl:copy-of select="@*[local-name() != 'id']"/>
6712
+ <xsl:value-of select="name()"/>
6713
+ </element>
6714
+ </xsl:for-each>
6715
+ </xsl:variable>
6716
+
6717
+ <xsl:variable name="math_elements_tree" select="xalan:nodeset($math_elements_tree_)"/>
6718
+
6719
+ <xsl:call-template name="insertClosingElements">
6720
+ <xsl:with-param name="tree" select="$math_elements_tree"/>
6721
+ </xsl:call-template>
6722
+
6723
+ <xsl:element name="br" namespace="{$namespace_full}"/>
6724
+
6725
+ <xsl:call-template name="insertOpeningElements">
6726
+ <xsl:with-param name="tree" select="$math_elements_tree"/>
6727
+ <xsl:with-param name="xmlns">http://www.w3.org/1998/Math/MathML</xsl:with-param>
6728
+ <xsl:with-param name="add_continue">false</xsl:with-param>
6729
+ </xsl:call-template>
6730
+
6731
+ </xsl:template>
6732
+
6657
6733
  <!-- Examples:
6658
6734
  <stem type="AsciiMath">x = 1</stem>
6659
6735
  <stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
@@ -6905,9 +6981,11 @@
6905
6981
  </xsl:template>
6906
6982
 
6907
6983
  <xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"> <!-- show in 'stem' template -->
6984
+ <!-- https://github.com/metanorma/isodoc/issues/607
6908
6985
  <xsl:if test="normalize-space() != ''">
6909
- <xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text>
6910
- </xsl:if>
6986
+ <xsl:text>(</xsl:text><xsl:apply-templates /><xsl:text>)</xsl:text>
6987
+ </xsl:if> -->
6988
+ <xsl:apply-templates/>
6911
6989
  </xsl:template>
6912
6990
 
6913
6991
  <!-- stem inside formula with name (with formula's number) -->
@@ -7063,6 +7141,17 @@
7063
7141
  </xsl:when>
7064
7142
  <xsl:otherwise>
7065
7143
 
7144
+ <!-- https://github.com/metanorma/isodoc/issues/607 -->
7145
+ <!-- <xsl:if test="$namespace = 'ieee'">
7146
+ <xsl:text>—</xsl:text> em dash &#x2014;
7147
+ </xsl:if> -->
7148
+ <!-- <xsl:if test="$namespace = 'iho' or $namespace = 'gb' or $namespace = 'm3d' or $namespace = 'unece-rec' or $namespace = 'unece' or $namespace = 'rsd'">
7149
+ <xsl:text>:</xsl:text>
7150
+ </xsl:if> -->
7151
+
7152
+ <!-- <xsl:if test="$namespace = 'itu' or $namespace = 'nist-cswp' or $namespace = 'nist-sp'">
7153
+ <xsl:text> – </xsl:text> en dash &#x2013;
7154
+ </xsl:if> -->
7066
7155
  </xsl:otherwise>
7067
7156
  </xsl:choose>
7068
7157
  </xsl:variable>
@@ -7081,6 +7170,16 @@
7081
7170
  </xsl:when>
7082
7171
  <xsl:otherwise>
7083
7172
 
7173
+ <!-- https://github.com/metanorma/isodoc/issues/607 -->
7174
+ <!-- <xsl:if test="$namespace = 'ieee'">
7175
+ <xsl:text>—</xsl:text> em dash &#x2014;
7176
+ </xsl:if> -->
7177
+ <!-- <xsl:if test="$namespace = 'gb' or $namespace = 'iso' or $namespace = 'iec' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' or $namespace = 'rsd' or $namespace = 'jcgm'">
7178
+ <xsl:text>:</xsl:text>
7179
+ </xsl:if> -->
7180
+ <!-- <xsl:if test="$namespace = 'itu' or $namespace = 'nist-cswp' or $namespace = 'nist-sp' or $namespace = 'unece-rec' or $namespace = 'unece'">
7181
+ <xsl:text> – </xsl:text> en dash &#x2013;
7182
+ </xsl:if> -->
7084
7183
  </xsl:otherwise>
7085
7184
  </xsl:choose>
7086
7185
  </xsl:variable>
@@ -9249,7 +9348,7 @@
9249
9348
  <xsl:if test="normalize-space() != ''">
9250
9349
  <fo:inline xsl:use-attribute-sets="termexample-name-style">
9251
9350
  <xsl:call-template name="refine_termexample-name-style"/>
9252
- <xsl:apply-templates/>
9351
+ <xsl:apply-templates/> <!-- commented $namespace = 'ieee', https://github.com/metanorma/isodoc/issues/614-->
9253
9352
  </fo:inline>
9254
9353
  </xsl:if>
9255
9354
  </xsl:template>
@@ -9411,7 +9510,7 @@
9411
9510
  <xsl:otherwise>
9412
9511
  <fo:inline xsl:use-attribute-sets="example-name-style">
9413
9512
  <xsl:call-template name="refine_example-name-style"/>
9414
- <xsl:apply-templates/>
9513
+ <xsl:apply-templates/> <!-- $namespace = 'ieee', see https://github.com/metanorma/isodoc/issues/614 -->
9415
9514
  </fo:inline>
9416
9515
  </xsl:otherwise>
9417
9516
  </xsl:choose>
@@ -9593,15 +9692,17 @@
9593
9692
 
9594
9693
  <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
9595
9694
  <fo:block role="BlockQuote">
9596
- <xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
9695
+ <xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source') and not(local-name() = 'attribution')]"/> <!-- process all nested nodes, except author and source -->
9597
9696
  </fo:block>
9598
9697
  </fo:block-container>
9599
9698
  </fo:block-container>
9600
- <xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
9699
+ <xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source'] or *[local-name() = 'attribution']">
9601
9700
  <fo:block xsl:use-attribute-sets="quote-source-style">
9602
9701
  <!-- — ISO, ISO 7301:2011, Clause 1 -->
9603
9702
  <xsl:apply-templates select="*[local-name() = 'author']"/>
9604
9703
  <xsl:apply-templates select="*[local-name() = 'source']"/>
9704
+ <!-- added for https://github.com/metanorma/isodoc/issues/607 -->
9705
+ <xsl:apply-templates select="*[local-name() = 'attribution']/*[local-name() = 'p']/node()"/>
9605
9706
  </fo:block>
9606
9707
  </xsl:if>
9607
9708
 
@@ -9623,9 +9724,13 @@
9623
9724
  </xsl:template>
9624
9725
 
9625
9726
  <xsl:template match="*[local-name() = 'author']">
9626
- <xsl:text>— </xsl:text>
9727
+ <xsl:if test="local-name(..) = 'quote'"> <!-- for old Presentation XML, https://github.com/metanorma/isodoc/issues/607 -->
9728
+ <xsl:text>— </xsl:text>
9729
+ </xsl:if>
9627
9730
  <xsl:apply-templates/>
9628
9731
  </xsl:template>
9732
+
9733
+ <xsl:template match="*[local-name() = 'quote']//*[local-name() = 'referenceFrom']"/>
9629
9734
  <!-- ====== -->
9630
9735
  <!-- ====== -->
9631
9736
 
@@ -9812,8 +9917,12 @@
9812
9917
  </xsl:template>
9813
9918
 
9814
9919
  <xsl:template match="*[local-name() = 'domain']">
9920
+ <!-- https://github.com/metanorma/isodoc/issues/607
9815
9921
  <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
9816
- <xsl:text> </xsl:text>
9922
+ <xsl:text> </xsl:text> -->
9923
+ <xsl:if test="not(@hidden = 'true')">
9924
+ <xsl:apply-templates/>
9925
+ </xsl:if>
9817
9926
  </xsl:template>
9818
9927
 
9819
9928
  <xsl:template match="*[local-name() = 'admitted']">
@@ -9861,6 +9970,29 @@
9861
9970
  <!-- END definition -->
9862
9971
  <!-- ========== -->
9863
9972
 
9973
+ <xsl:variable name="reviews_">
9974
+ <xsl:for-each select="//*[local-name() = 'review'][@from]">
9975
+ <xsl:copy>
9976
+ <xsl:copy-of select="@from"/>
9977
+ <xsl:copy-of select="@id"/>
9978
+ </xsl:copy>
9979
+ </xsl:for-each>
9980
+ </xsl:variable>
9981
+ <xsl:variable name="reviews" select="xalan:nodeset($reviews_)"/>
9982
+
9983
+ <xsl:template name="addReviewHelper">
9984
+ <!-- if there is review with from="...", then add small helper block for Annot tag adding, see 'review' template -->
9985
+ <xsl:variable name="curr_id" select="@id"/>
9986
+ <xsl:variable name="review_id" select="normalize-space($reviews//*[local-name() = 'review'][@from = $curr_id]/@id)"/>
9987
+ <xsl:if test="$review_id != ''"> <!-- i.e. if review found -->
9988
+ <fo:block keep-with-next="always" line-height="0.1" id="{$review_id}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{$review_id}" fox:alt-text="Annot___{$review_id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
9989
+ </xsl:if>
9990
+ <!-- <fo:block>
9991
+ <curr_id><xsl:value-of select="$curr_id"/></curr_id>
9992
+ <xsl:copy-of select="$reviews"/>
9993
+ </fo:block> -->
9994
+ </xsl:template>
9995
+
9864
9996
  <!-- main sections -->
9865
9997
  <xsl:template match="/*/*[local-name() = 'sections']/*" name="sections_node" priority="2">
9866
9998
 
@@ -9869,6 +10001,8 @@
9869
10001
 
9870
10002
  <xsl:call-template name="sections_element_style"/>
9871
10003
 
10004
+ <xsl:call-template name="addReviewHelper"/>
10005
+
9872
10006
  <xsl:apply-templates/>
9873
10007
  </fo:block>
9874
10008
 
@@ -9909,6 +10043,7 @@
9909
10043
 
9910
10044
  <fo:block>
9911
10045
  <xsl:call-template name="setId"/>
10046
+ <xsl:call-template name="addReviewHelper"/>
9912
10047
  <xsl:apply-templates/>
9913
10048
  </fo:block>
9914
10049
  </xsl:template>
@@ -9945,6 +10080,8 @@
9945
10080
 
9946
10081
  <xsl:call-template name="refine_clause_style"/>
9947
10082
 
10083
+ <xsl:call-template name="addReviewHelper"/>
10084
+
9948
10085
  <xsl:apply-templates/>
9949
10086
  </fo:block>
9950
10087
  </xsl:template>
@@ -9997,6 +10134,23 @@
9997
10134
 
9998
10135
  <xsl:variable name="id_from" select="normalize-space(current()/@from)"/>
9999
10136
 
10137
+ <xsl:if test="1 = 1">
10138
+ <xsl:choose>
10139
+ <!-- if there isn't the attribute '@from', then -->
10140
+ <xsl:when test="$id_from = ''">
10141
+ <fo:block id="{@id}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@id}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
10142
+ </xsl:when>
10143
+ <!-- if there isn't element with id 'from', then create 'bookmark' here -->
10144
+ <xsl:when test="ancestor::*[contains(local-name(), '-standard')] and not(ancestor::*[contains(local-name(), '-standard')]//*[@id = $id_from])">
10145
+ <fo:block id="{@from}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@from}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
10146
+ </xsl:when>
10147
+ <xsl:when test="not(/*[@id = $id_from]) and not(/*//*[@id = $id_from]) and not(preceding-sibling::*[@id = $id_from])">
10148
+ <fo:block id="{@from}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@from}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
10149
+ </xsl:when>
10150
+ </xsl:choose>
10151
+ </xsl:if>
10152
+
10153
+ <xsl:if test="1 = 2">
10000
10154
  <xsl:choose>
10001
10155
  <!-- if there isn't the attribute '@from', then -->
10002
10156
  <xsl:when test="$id_from = ''">
@@ -10010,6 +10164,7 @@
10010
10164
  <fo:block id="{@from}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:block>
10011
10165
  </xsl:when>
10012
10166
  </xsl:choose>
10167
+ </xsl:if>
10013
10168
 
10014
10169
  </xsl:template>
10015
10170
 
@@ -11373,7 +11528,7 @@
11373
11528
  <!-- remove preprocess-xslt -->
11374
11529
  <xsl:template match="*[local-name() = 'preprocess-xslt']" mode="update_xml_step1"/>
11375
11530
 
11376
- <xsl:template match="*[local-name() = 'stem'] | *[local-name() = 'image'] | *[local-name() = 'sourcecode'] | *[local-name() = 'bibdata'] | *[local-name() = 'localized-strings']" mode="update_xml_step1">
11531
+ <xsl:template match="*[local-name() = 'stem'][not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])] | *[local-name() = 'image'][not(.//*[local-name() = 'passthrough'])] | *[local-name() = 'sourcecode'][not(.//*[local-name() = 'passthrough'])] | *[local-name() = 'bibdata'][not(.//*[local-name() = 'passthrough'])] | *[local-name() = 'localized-strings']" mode="update_xml_step1">
11377
11532
  <xsl:copy-of select="."/>
11378
11533
  </xsl:template>
11379
11534
 
@@ -11439,6 +11594,22 @@
11439
11594
  </xsl:choose>
11440
11595
  </xsl:template>
11441
11596
 
11597
+ <xsl:variable name="regex_passthrough">.*\bpdf\b.*</xsl:variable>
11598
+ <xsl:template match="*[local-name() = 'passthrough']" mode="update_xml_step1">
11599
+ <!-- <xsl:if test="contains(@formats, ' pdf ')"> -->
11600
+ <xsl:if test="normalize-space(java:matches(java:java.lang.String.new(@formats), $regex_passthrough)) = 'true'">
11601
+ <xsl:apply-templates mode="update_xml_step1"/>
11602
+ </xsl:if>
11603
+ </xsl:template>
11604
+
11605
+ <!-- split math by element with @linebreak into maths -->
11606
+ <xsl:template match="mathml:math[.//mathml:mo[@linebreak] or .//mathml:mspace[@linebreak]]" mode="update_xml_step1">
11607
+ <xsl:variable name="maths">
11608
+ <xsl:apply-templates select="." mode="mathml_linebreak"/>
11609
+ </xsl:variable>
11610
+ <xsl:copy-of select="$maths"/>
11611
+ </xsl:template>
11612
+
11442
11613
  <!-- =========================================================================== -->
11443
11614
  <!-- END STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
11444
11615
  <!-- =========================================================================== -->
@@ -11542,6 +11713,8 @@
11542
11713
 
11543
11714
  <xsl:template name="insertOpeningElements">
11544
11715
  <xsl:param name="tree"/>
11716
+ <xsl:param name="xmlns"/>
11717
+ <xsl:param name="add_continue">true</xsl:param>
11545
11718
  <xsl:for-each select="$tree//element">
11546
11719
  <xsl:text disable-output-escaping="yes">&lt;</xsl:text>
11547
11720
  <xsl:value-of select="."/>
@@ -11552,7 +11725,8 @@
11552
11725
  <xsl:value-of select="."/>
11553
11726
  <xsl:text>"</xsl:text>
11554
11727
  </xsl:for-each>
11555
- <xsl:if test="position() = 1"> continue="true"</xsl:if>
11728
+ <xsl:if test="position() = 1 and $add_continue = 'true'"> continue="true"</xsl:if>
11729
+ <xsl:if test="position() = 1 and $xmlns != ''"> xmlns="<xsl:value-of select="$xmlns"/>"</xsl:if>
11556
11730
  <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
11557
11731
  <xsl:if test="$debug = 'true'">
11558
11732
  <xsl:message>&lt;<xsl:value-of select="."/>&gt;</xsl:message>
@@ -1783,9 +1783,21 @@ that the `number` given for the series applies to the second iteration of number
1783
1783
  May be used to differentiate rendering of notes in bibliographies</a:documentation>
1784
1784
  </attribute>
1785
1785
  </optional>
1786
- <ref name="LocalizedMarkedUpString">
1786
+ <ref name="LocalizedStringAttributes">
1787
1787
  <a:documentation>The content of the note</a:documentation>
1788
1788
  </ref>
1789
+ <choice>
1790
+ <oneOrMore>
1791
+ <ref name="BasicBlockNoId">
1792
+ <a:documentation>Multiple blocks of content</a:documentation>
1793
+ </ref>
1794
+ </oneOrMore>
1795
+ <oneOrMore>
1796
+ <ref name="TextElement">
1797
+ <a:documentation>Single block of content</a:documentation>
1798
+ </ref>
1799
+ </oneOrMore>
1800
+ </choice>
1789
1801
  </element>
1790
1802
  </define>
1791
1803
  <define name="bibabstract">
@@ -10,7 +10,7 @@
10
10
  <include href="relaton-cc.rng"/>
11
11
  <include href="isodoc.rng">
12
12
  <start>
13
- <ref name="csd-standard"/>
13
+ <ref name="cc-standard"/>
14
14
  </start>
15
15
  <define name="FigureBody">
16
16
  <zeroOrMore>
@@ -40,8 +40,8 @@
40
40
  </choice>
41
41
  </define>
42
42
  </include>
43
- <define name="csd-standard">
44
- <element name="csd-standard">
43
+ <define name="cc-standard">
44
+ <element name="cc-standard">
45
45
  <ref name="Root-Attributes"/>
46
46
  <ref name="bibdata"/>
47
47
  <zeroOrMore>
@@ -17,7 +17,7 @@
17
17
  these elements; we just want one namespace for any child grammars
18
18
  of this.
19
19
  -->
20
- <!-- VERSION v1.3.4 -->
20
+ <!-- VERSION v1.4.0 -->
21
21
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
22
22
  <include href="reqt.rng"/>
23
23
  <include href="basicdoc.rng">
@@ -326,7 +326,7 @@ normative or informative references, some split references into sections organiz
326
326
  <a:documentation>Content of note</a:documentation>
327
327
  <oneOrMore>
328
328
  <choice>
329
- <ref name="paragraph"/>
329
+ <ref name="paragraph-with-footnote"/>
330
330
  <ref name="ul"/>
331
331
  <ref name="ol"/>
332
332
  <ref name="dl"/>
@@ -412,7 +412,7 @@ normative or informative references, some split references into sections organiz
412
412
  <element name="note">
413
413
  <ref name="OptionalId"/>
414
414
  <oneOrMore>
415
- <ref name="paragraph"/>
415
+ <ref name="paragraph-with-footnote"/>
416
416
  </oneOrMore>
417
417
  </element>
418
418
  </define>
@@ -1977,7 +1977,7 @@ used in document amendments</a:documentation>
1977
1977
  <oneOrMore>
1978
1978
  <choice>
1979
1979
  <a:documentation>Content of the verbal representation of the term</a:documentation>
1980
- <ref name="paragraph"/>
1980
+ <ref name="paragraph-with-footnote"/>
1981
1981
  <ref name="dl"/>
1982
1982
  <ref name="ol"/>
1983
1983
  <ref name="ul"/>
@@ -2015,7 +2015,7 @@ used in document amendments</a:documentation>
2015
2015
  <oneOrMore>
2016
2016
  <choice>
2017
2017
  <a:documentation>Content of the term note</a:documentation>
2018
- <ref name="paragraph"/>
2018
+ <ref name="paragraph-with-footnote"/>
2019
2019
  <ref name="ul"/>
2020
2020
  <ref name="ol"/>
2021
2021
  <ref name="dl"/>
@@ -2037,7 +2037,7 @@ used in document amendments</a:documentation>
2037
2037
  <ref name="dl"/>
2038
2038
  <ref name="quote"/>
2039
2039
  <ref name="sourcecode"/>
2040
- <ref name="paragraph"/>
2040
+ <ref name="paragraph-with-footnote"/>
2041
2041
  <ref name="figure"/>
2042
2042
  </choice>
2043
2043
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cc
3
- VERSION = "2.5.5".freeze
3
+ VERSION = "2.5.6".freeze
4
4
  end
5
5
  end
data/metanorma-cc.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ["lib"]
30
30
  spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
31
31
 
32
- spec.add_dependency "metanorma-generic", "~> 2.7.0"
32
+ spec.add_dependency "metanorma-generic", "~> 2.7.2"
33
33
 
34
34
  spec.add_development_dependency "debug"
35
35
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
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.5
4
+ version: 2.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.7.0
19
+ version: 2.7.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.7.0
26
+ version: 2.7.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement