metanorma-cc 2.4.1 → 2.4.2

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: a74278944515a96765355e89d30bfa38d646f59103f31f99246ee3a41ef94881
4
- data.tar.gz: 72d2d58b0a0a96269a64e64b1a98852c63d7e4d11073939a39133e2bcbf89fc3
3
+ metadata.gz: 9addb36ecc8d1ecba39442e834158ad429cd49fea376d5b8493898c1c5d2811a
4
+ data.tar.gz: 299a019aaa48c9b41de0e09c5eaf9effe2da3b2f6712c010c1c54cfe86773d16
5
5
  SHA512:
6
- metadata.gz: 7e4b30978683747f20cd9c4461e9d2b0a262f10fb4c6b0d8a4b7e8fcc97bf58c09681b8a362b4c9f97c0147c570fd3d56a6e98f661be0188c539f0b6df0e72d3
7
- data.tar.gz: fe54f010d18b64cd5ea8a5189df24b9b7c92140442e2cd543e2a18f22fd69f982b2ae7db8b2290ae1284d063537eb70f8de2414ac6fcb32f56464aafb4e5e054
6
+ metadata.gz: 2cb26abbc7ca5b7539e5cefd4679a56d257438d1471d052a4ffc6c5d666f6f79cf7132ae96b03aa562e4a0611d08847314a506303e11bb3cc10ebb654f0467b7
7
+ data.tar.gz: 73bacd9658eab6e13961d77b476fd021d37a3ac90cbf535684fa0d0031ea86e9ddde0d023e2bd55f3fe9e81b3f59e4b87cd5425e253d6f954337df1e24893d64
@@ -1094,6 +1094,10 @@
1094
1094
 
1095
1095
  </xsl:attribute-set>
1096
1096
 
1097
+ <xsl:template name="refine_termexample-style">
1098
+
1099
+ </xsl:template>
1100
+
1097
1101
  <xsl:attribute-set name="example-style">
1098
1102
 
1099
1103
  <xsl:attribute name="font-size">10pt</xsl:attribute>
@@ -2169,6 +2173,36 @@
2169
2173
  </xsl:for-each>
2170
2174
  </xsl:template>
2171
2175
 
2176
+ <xsl:template name="processMainSectionsDefault_flatxml">
2177
+ <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
2178
+ <xsl:sort select="@displayorder" data-type="number"/>
2179
+ <xsl:variable name="flatxml">
2180
+ <xsl:apply-templates select="." mode="flatxml"/>
2181
+ </xsl:variable>
2182
+ <!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
2183
+ <xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
2184
+
2185
+ </xsl:for-each>
2186
+
2187
+ <xsl:for-each select="/*/*[local-name()='annex']">
2188
+ <xsl:sort select="@displayorder" data-type="number"/>
2189
+ <xsl:variable name="flatxml">
2190
+ <xsl:apply-templates select="." mode="flatxml"/>
2191
+ </xsl:variable>
2192
+ <!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
2193
+ <xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
2194
+ </xsl:for-each>
2195
+
2196
+ <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
2197
+ <xsl:sort select="@displayorder" data-type="number"/>
2198
+ <xsl:variable name="flatxml">
2199
+ <xsl:apply-templates select="." mode="flatxml"/>
2200
+ </xsl:variable>
2201
+ <!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
2202
+ <xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
2203
+ </xsl:for-each>
2204
+ </xsl:template>
2205
+
2172
2206
  <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2173
2207
  <xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
2174
2208
  <xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
@@ -4244,13 +4278,13 @@
4244
4278
  <tr>
4245
4279
  <td>
4246
4280
  <xsl:attribute name="id">
4247
- <xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
4281
+ <xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
4248
4282
  </xsl:attribute>
4249
4283
  <xsl:apply-templates/>
4250
4284
  </td>
4251
4285
  <td>
4252
4286
  <xsl:attribute name="id">
4253
- <xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
4287
+ <xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
4254
4288
  </xsl:attribute>
4255
4289
 
4256
4290
  <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
@@ -4862,6 +4896,10 @@
4862
4896
  <fo:inline keep-with-next.within-line="always"><xsl:value-of select="."/></fo:inline>
4863
4897
  </xsl:template>
4864
4898
 
4899
+ <xsl:template match="*[local-name() = 'span'][contains(@style, 'text-transform:none')]//text()" priority="5">
4900
+ <xsl:value-of select="."/>
4901
+ </xsl:template>
4902
+
4865
4903
  <!-- ========================= -->
4866
4904
  <!-- END Rich text formatting -->
4867
4905
  <!-- ========================= -->
@@ -5492,7 +5530,7 @@
5492
5530
  </xsl:choose>
5493
5531
  </xsl:variable>
5494
5532
  <xsl:attribute name="id">
5495
- <xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
5533
+ <xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
5496
5534
  </xsl:attribute>
5497
5535
 
5498
5536
  <xsl:for-each select="*[local-name() = 'p']">
@@ -5500,7 +5538,7 @@
5500
5538
  <xsl:copy-of select="@*"/>
5501
5539
  <xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
5502
5540
  <xsl:attribute name="id">
5503
- <xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
5541
+ <xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
5504
5542
  </xsl:attribute>
5505
5543
 
5506
5544
  <!-- <xsl:copy-of select="node()" /> -->
@@ -5564,7 +5602,7 @@
5564
5602
  <xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
5565
5603
  <xsl:copy>
5566
5604
  <xsl:attribute name="id">
5567
- <xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
5605
+ <xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
5568
5606
  </xsl:attribute>
5569
5607
  <xsl:copy-of select="node()"/>
5570
5608
  </xsl:copy>
@@ -8366,7 +8404,7 @@
8366
8404
  <!-- ====== -->
8367
8405
  <xsl:template match="*[local-name() = 'termexample']">
8368
8406
  <fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
8369
-
8407
+ <xsl:call-template name="refine_termexample-style"/>
8370
8408
  <xsl:call-template name="setBlockSpanAll"/>
8371
8409
 
8372
8410
  <xsl:apply-templates select="*[local-name()='name']"/>
@@ -14,7 +14,7 @@ module IsoDoc
14
14
  end
15
15
 
16
16
  def title(isoxml, _out)
17
- main = isoxml&.at(ns("//bibdata/title[@language='en']"))&.text
17
+ main = isoxml.at(ns("//bibdata/title[@language='en']"))&.children&.to_xml
18
18
  set(:doctitle, main)
19
19
  end
20
20
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "2.4.1".freeze
3
+ VERSION = "2.4.2".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.4.1
4
+ version: 2.4.2
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-02-05 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic