metanorma-plateau 0.1.14 → 0.1.15

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: d8dc6198df0a43ce003b8368e52bba495b51cb2b840d435aa2cc3d938004cc1b
4
- data.tar.gz: a7faa2b5d6729d8e6c04469532cf79dfffc970b5f0e8cd13736992c3921961b4
3
+ metadata.gz: 395bd0ddb1051233f50c4e50672c98227da150d638f4693857861421b43d238a
4
+ data.tar.gz: 0f69c4cee8908eb8c104a116150df2f05ed458bb01bfa2105c12669a85a558a7
5
5
  SHA512:
6
- metadata.gz: 5a12da085c319dd59936ca47f85f90f272eceaf7febbe5b6695830033b0af241140768aa52bbccaea39f6dda77ccb628b99b2d06fa325b1ffdc7b3d41bf0470c
7
- data.tar.gz: 0b62e6cbd2feebdab8db36f787867193e4d848500ceeff5cde41a4ac655db1e946bbd13c85f3b774119eee5a29fc364da60327a784e3a3b05ca7c314767772c0
6
+ metadata.gz: 2aba824057acd6a554ef6829d166072e5f685816248cfd2f5b1a44bb4e7ed20debbbf18207054739d8f2b4f58dba03ea382e0f89c8750a6b9b77a0a0f9790280
7
+ data.tar.gz: d26e2a4f67a0caf9a2bf2087222abcf286c09a8917eebb38e899c6babeb04bf2c05ddd45d89afc5a01d597a37828775e39a01d8e2592cc768f54756aef4a240c
@@ -3072,6 +3072,9 @@
3072
3072
 
3073
3073
  </xsl:attribute-set>
3074
3074
 
3075
+ <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
3076
+ </xsl:attribute-set>
3077
+
3075
3078
  <xsl:attribute-set name="definition-style">
3076
3079
 
3077
3080
  <xsl:attribute name="space-before">2pt</xsl:attribute>
@@ -5296,7 +5299,9 @@
5296
5299
  <xsl:with-param name="element">
5297
5300
  <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 -->
5298
5301
  <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
5302
+
5299
5303
  <xsl:copy-of select="$current_fn_number_text"/>
5304
+
5300
5305
  </fo:inline>
5301
5306
  </fo:basic-link>
5302
5307
  </xsl:with-param>
@@ -5315,8 +5320,7 @@
5315
5320
 
5316
5321
  <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
5317
5322
 
5318
- <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
5319
-
5323
+ <xsl:variable name="fn_block">
5320
5324
  <xsl:call-template name="refine_fn-body-style"/>
5321
5325
 
5322
5326
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
@@ -5324,9 +5328,15 @@
5324
5328
  <xsl:call-template name="refine_fn-body-num-style"/>
5325
5329
 
5326
5330
  <xsl:value-of select="$current_fn_number_text"/>
5331
+
5327
5332
  </fo:inline>
5328
5333
  <xsl:apply-templates/>
5329
- </fo:block>
5334
+ </xsl:variable>
5335
+
5336
+ <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
5337
+ <xsl:copy-of select="$fn_block"/>
5338
+ </fo:block>
5339
+
5330
5340
  </fo:block-container>
5331
5341
  </fo:footnote-body>
5332
5342
  </fo:footnote>
@@ -11353,14 +11363,17 @@
11353
11363
  </fo:block>
11354
11364
  </xsl:template>
11355
11365
 
11356
- <xsl:template match="*[local-name() = 'domain']">
11366
+ <!-- <xsl:template match="*[local-name() = 'domain']"> -->
11357
11367
  <!-- https://github.com/metanorma/isodoc/issues/607
11358
11368
  <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
11359
11369
  <xsl:text> </xsl:text> -->
11360
- <xsl:if test="not(@hidden = 'true')">
11370
+ <!-- <xsl:if test="not(@hidden = 'true')">
11361
11371
  <xsl:apply-templates/>
11362
11372
  </xsl:if>
11363
- </xsl:template>
11373
+ </xsl:template> -->
11374
+
11375
+ <!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
11376
+ <xsl:template match="*[local-name() = 'domain']"/>
11364
11377
 
11365
11378
  <xsl:template match="*[local-name() = 'admitted']">
11366
11379
  <fo:block xsl:use-attribute-sets="admitted-style">
@@ -11375,9 +11388,11 @@
11375
11388
  </xsl:template>
11376
11389
 
11377
11390
  <xsl:template name="setStyle_preferred">
11378
- <xsl:if test="*[local-name() = 'strong']">
11379
- <xsl:attribute name="font-weight">normal</xsl:attribute>
11380
- </xsl:if>
11391
+
11392
+ <xsl:if test="*[local-name() = 'strong']">
11393
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
11394
+ </xsl:if>
11395
+
11381
11396
  </xsl:template>
11382
11397
 
11383
11398
  <!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
@@ -11387,6 +11402,17 @@
11387
11402
  </xsl:template>
11388
11403
  <!-- End Preferred, admitted, deprecated -->
11389
11404
 
11405
+ <xsl:template match="*[local-name() = 'fmt-related']">
11406
+ <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
11407
+ <xsl:apply-templates/>
11408
+ </fo:block>
11409
+ </xsl:template>
11410
+ <xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
11411
+ <fo:block>
11412
+ <xsl:apply-templates/>
11413
+ </fo:block>
11414
+ </xsl:template>
11415
+
11390
11416
  <!-- ========== -->
11391
11417
  <!-- definition -->
11392
11418
  <!-- ========== -->
@@ -12306,6 +12332,7 @@
12306
12332
 
12307
12333
  <!-- Normative references -->
12308
12334
  <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
12335
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
12309
12336
 
12310
12337
  <fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
12311
12338
 
@@ -13022,7 +13049,8 @@
13022
13049
  <!-- add @id - first element with @id plus '_element_name' -->
13023
13050
  <xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
13024
13051
  <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>
13025
- <xsl:attribute name="id"><xsl:value-of select="$prefix_id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
13052
+ <xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
13053
+ <xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
13026
13054
  </xsl:if>
13027
13055
  </xsl:template>
13028
13056
 
@@ -13079,6 +13107,31 @@
13079
13107
  <xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
13080
13108
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
13081
13109
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
13110
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
13111
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
13112
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
13113
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
13114
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
13115
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
13116
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
13117
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
13118
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
13119
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
13120
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
13121
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
13122
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
13123
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
13124
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
13125
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
13126
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
13127
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
13128
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
13129
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
13130
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
13131
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
13132
+
13133
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
13134
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
13082
13135
 
13083
13136
  <xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
13084
13137
  <xsl:copy>
@@ -13123,6 +13176,94 @@
13123
13176
  </xsl:element>
13124
13177
  </xsl:template>
13125
13178
 
13179
+ <xsl:template match="*[local-name() = 'fmt-preferred']"/>
13180
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
13181
+ <xsl:apply-templates mode="update_xml_step1"/>
13182
+ </xsl:template>
13183
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
13184
+ <xsl:element name="preferred" namespace="{$namespace_full}">
13185
+ <xsl:copy-of select="@*"/>
13186
+ <xsl:apply-templates mode="update_xml_step1"/>
13187
+ </xsl:element>
13188
+ </xsl:template>
13189
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
13190
+ <xsl:apply-templates mode="update_xml_pres"/>
13191
+ </xsl:template>
13192
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
13193
+ <xsl:element name="preferred" namespace="{$namespace_full}">
13194
+ <xsl:copy-of select="@*"/>
13195
+ <xsl:apply-templates mode="update_xml_pres"/>
13196
+ </xsl:element>
13197
+ </xsl:template>
13198
+
13199
+ <xsl:template match="*[local-name() = 'fmt-admitted']"/>
13200
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
13201
+ <xsl:apply-templates mode="update_xml_step1"/>
13202
+ </xsl:template>
13203
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
13204
+ <xsl:element name="admitted" namespace="{$namespace_full}">
13205
+ <xsl:copy-of select="@*"/>
13206
+ <xsl:apply-templates mode="update_xml_step1"/>
13207
+ </xsl:element>
13208
+ </xsl:template>
13209
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
13210
+ <xsl:apply-templates mode="update_xml_pres"/>
13211
+ </xsl:template>
13212
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
13213
+ <xsl:element name="admitted" namespace="{$namespace_full}">
13214
+ <xsl:copy-of select="@*"/>
13215
+ <xsl:apply-templates mode="update_xml_pres"/>
13216
+ </xsl:element>
13217
+ </xsl:template>
13218
+
13219
+ <xsl:template match="*[local-name() = 'fmt-deprecates']"/>
13220
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
13221
+ <xsl:apply-templates mode="update_xml_step1"/>
13222
+ </xsl:template>
13223
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
13224
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
13225
+ <xsl:copy-of select="@*"/>
13226
+ <xsl:apply-templates mode="update_xml_step1"/>
13227
+ </xsl:element>
13228
+ </xsl:template>
13229
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
13230
+ <xsl:apply-templates mode="update_xml_pres"/>
13231
+ </xsl:template>
13232
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
13233
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
13234
+ <xsl:copy-of select="@*"/>
13235
+ <xsl:apply-templates mode="update_xml_pres"/>
13236
+ </xsl:element>
13237
+ </xsl:template>
13238
+
13239
+ <xsl:template match="*[local-name() = 'fmt-definition']"/>
13240
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
13241
+ <xsl:element name="definition" namespace="{$namespace_full}">
13242
+ <xsl:copy-of select="@*"/>
13243
+ <xsl:apply-templates mode="update_xml_step1"/>
13244
+ </xsl:element>
13245
+ </xsl:template>
13246
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
13247
+ <xsl:element name="definition" namespace="{$namespace_full}">
13248
+ <xsl:copy-of select="@*"/>
13249
+ <xsl:apply-templates mode="update_xml_pres"/>
13250
+ </xsl:element>
13251
+ </xsl:template>
13252
+
13253
+ <xsl:template match="*[local-name() = 'fmt-termsource']"/>
13254
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
13255
+ <xsl:element name="termsource" namespace="{$namespace_full}">
13256
+ <xsl:copy-of select="@*"/>
13257
+ <xsl:apply-templates mode="update_xml_step1"/>
13258
+ </xsl:element>
13259
+ </xsl:template>
13260
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
13261
+ <xsl:element name="termsource" namespace="{$namespace_full}">
13262
+ <xsl:copy-of select="@*"/>
13263
+ <xsl:apply-templates mode="update_xml_pres"/>
13264
+ </xsl:element>
13265
+ </xsl:template>
13266
+
13126
13267
  <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">
13127
13268
  <xsl:apply-templates mode="update_xml_step1"/>
13128
13269
  </xsl:template>
@@ -14368,7 +14509,7 @@
14368
14509
  </xsl:template>
14369
14510
 
14370
14511
  <xsl:template name="namespaceCheck">
14371
- <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
14512
+ <xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
14372
14513
  <xsl:variable name="XSLNS">
14373
14514
 
14374
14515
  </xsl:variable>
@@ -14456,6 +14597,9 @@
14456
14597
  <xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
14457
14598
  <xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14458
14599
  </xsl:when>
14600
+ <xsl:when test="string-length($bibdata_updated) != ''">
14601
+ <xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14602
+ </xsl:when>
14459
14603
  <xsl:when test="$formatted = 'true'">
14460
14604
  <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14461
14605
  </xsl:when>
@@ -1277,17 +1277,17 @@ for which this claim of validity is made, if applicable</a:documentation>
1277
1277
  </define>
1278
1278
  <define name="validityBegins">
1279
1279
  <element name="validityBegins">
1280
- <ref name="ISO8601DateTime"/>
1280
+ <ref name="ISO8601Date"/>
1281
1281
  </element>
1282
1282
  </define>
1283
1283
  <define name="validityEnds">
1284
1284
  <element name="validityEnds">
1285
- <ref name="ISO8601DateTime"/>
1285
+ <ref name="ISO8601Date"/>
1286
1286
  </element>
1287
1287
  </define>
1288
1288
  <define name="validityRevision">
1289
1289
  <element name="revision">
1290
- <ref name="ISO8601DateTime"/>
1290
+ <ref name="ISO8601Date"/>
1291
1291
  </element>
1292
1292
  </define>
1293
1293
  <define name="TypedTitleString">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "0.1.14".freeze
3
+ VERSION = "0.1.15".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plateau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-07 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-jis