metanorma-plateau 0.1.14 → 0.1.16

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: 86f7c18c1343e8d2ef7350db1a5b5249c09c645b16269ec63581be1a7fb34323
4
+ data.tar.gz: 8f8eb68e1dc7610e21d650b9595228421786927e203da3276cd7971d1a9fce6c
5
5
  SHA512:
6
- metadata.gz: 5a12da085c319dd59936ca47f85f90f272eceaf7febbe5b6695830033b0af241140768aa52bbccaea39f6dda77ccb628b99b2d06fa325b1ffdc7b3d41bf0470c
7
- data.tar.gz: 0b62e6cbd2feebdab8db36f787867193e4d848500ceeff5cde41a4ac655db1e946bbd13c85f3b774119eee5a29fc364da60327a784e3a3b05ca7c314767772c0
6
+ metadata.gz: b0440e60dec457cd3a971d47cb3974b39600ed3c93380df7642404b074391fe273b743cdd58694085059b48ef24ca058fb2a1ac8813646e1ceeaab64ea736e26
7
+ data.tar.gz: b1d933ad3ad3befbefd20bdb2922fac4cb4acd1bec3e722964b41adc657475b5ab11ed962b012f7390a2705508635261ad5688724a7d4ee11e748fd4de32aaa8
@@ -1213,6 +1213,13 @@
1213
1213
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
1214
1214
  </xsl:if>
1215
1215
 
1216
+ <xsl:if test="(ancestor::*[local-name() = 'td' or local-name() = 'th']) and (.//*[local-name() = 'font_en' or local-name() = 'font_en_bold'])">
1217
+ <xsl:if test="$isGenerateTableIF = 'false'">
1218
+ <xsl:attribute name="language">en</xsl:attribute>
1219
+ <xsl:attribute name="hyphenate">true</xsl:attribute>
1220
+ </xsl:if>
1221
+ </xsl:if>
1222
+
1216
1223
  <xsl:if test="parent::plateau:clause or (ancestor::plateau:note and not(ancestor::plateau:table))">
1217
1224
  <xsl:text> </xsl:text>
1218
1225
  </xsl:if>
@@ -1670,8 +1677,20 @@
1670
1677
  <!-- Key title after the table -->
1671
1678
  <xsl:template match="plateau:table/plateau:p[@class = 'ListTitle']" priority="2" mode="update_xml_step1"/>
1672
1679
 
1680
+ <!-- added to fix conflict with previous update in update_xml_pres -->
1681
+ <xsl:template match="*[local-name() = 'preferred'] | *[local-name() = 'admitted'] | *[local-name() = 'deprecates'] | *[local-name() = 'definition'] | *[local-name() = 'termsource'] | *[local-name() = 'termsource'] | *[local-name() = 'term'][@unnumbered = 'true']" mode="update_xml_step1" priority="2">
1682
+ <xsl:copy>
1683
+ <xsl:apply-templates select="@*|node()" mode="update_xml_step1"/>
1684
+ </xsl:copy>
1685
+ </xsl:template>
1686
+
1673
1687
  <xsl:template match="*[local-name() = 'font_en_bold'][normalize-space() != '']">
1674
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1688
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1689
+ <xsl:choose>
1690
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1691
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1692
+ </xsl:choose>
1693
+ </xsl:if>
1675
1694
  <fo:inline font-family="Noto Sans Condensed" font-weight="300"> <!-- font-weight="bold" -->
1676
1695
  <!-- <xsl:if test="ancestor::*[local-name() = 'preferred']">
1677
1696
  <xsl:attribute name="font-weight">normal</xsl:attribute>
@@ -1690,11 +1709,21 @@
1690
1709
 
1691
1710
  <xsl:apply-templates/>
1692
1711
  </fo:inline>
1693
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1712
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1713
+ <xsl:choose>
1714
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1715
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1716
+ </xsl:choose>
1717
+ </xsl:if>
1694
1718
  </xsl:template>
1695
1719
 
1696
1720
  <xsl:template match="*[local-name() = 'font_en'][normalize-space() != '']">
1697
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1721
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1722
+ <xsl:choose>
1723
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1724
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1725
+ </xsl:choose>
1726
+ </xsl:if>
1698
1727
  <fo:inline>
1699
1728
  <xsl:if test="not(ancestor::plateau:p[@class = 'zzSTDTitle2']) and not(ancestor::plateau:span[@class = 'JIS'])">
1700
1729
  <xsl:attribute name="font-family">Noto Sans Condensed</xsl:attribute>
@@ -1705,7 +1734,12 @@
1705
1734
  </xsl:if>
1706
1735
  <xsl:apply-templates/>
1707
1736
  </fo:inline>
1708
- <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']"><xsl:value-of select="$zero_width_space"/></xsl:if>
1737
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
1738
+ <xsl:choose>
1739
+ <xsl:when test="$isGenerateTableIF = 'false'"><fo:inline font-size="0.1pt"><xsl:text> </xsl:text></fo:inline></xsl:when>
1740
+ <xsl:otherwise><fo:inline><xsl:value-of select="$zero_width_space"/></fo:inline></xsl:otherwise>
1741
+ </xsl:choose>
1742
+ </xsl:if>
1709
1743
  </xsl:template>
1710
1744
 
1711
1745
  <!-- ========================= -->
@@ -3072,6 +3106,9 @@
3072
3106
 
3073
3107
  </xsl:attribute-set>
3074
3108
 
3109
+ <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
3110
+ </xsl:attribute-set>
3111
+
3075
3112
  <xsl:attribute-set name="definition-style">
3076
3113
 
3077
3114
  <xsl:attribute name="space-before">2pt</xsl:attribute>
@@ -5296,7 +5333,9 @@
5296
5333
  <xsl:with-param name="element">
5297
5334
  <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
5335
  <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
5336
+
5299
5337
  <xsl:copy-of select="$current_fn_number_text"/>
5338
+
5300
5339
  </fo:inline>
5301
5340
  </fo:basic-link>
5302
5341
  </xsl:with-param>
@@ -5315,8 +5354,7 @@
5315
5354
 
5316
5355
  <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
5317
5356
 
5318
- <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
5319
-
5357
+ <xsl:variable name="fn_block">
5320
5358
  <xsl:call-template name="refine_fn-body-style"/>
5321
5359
 
5322
5360
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
@@ -5324,9 +5362,15 @@
5324
5362
  <xsl:call-template name="refine_fn-body-num-style"/>
5325
5363
 
5326
5364
  <xsl:value-of select="$current_fn_number_text"/>
5365
+
5327
5366
  </fo:inline>
5328
5367
  <xsl:apply-templates/>
5329
- </fo:block>
5368
+ </xsl:variable>
5369
+
5370
+ <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
5371
+ <xsl:copy-of select="$fn_block"/>
5372
+ </fo:block>
5373
+
5330
5374
  </fo:block-container>
5331
5375
  </fo:footnote-body>
5332
5376
  </fo:footnote>
@@ -7099,9 +7143,14 @@
7099
7143
 
7100
7144
  <xsl:variable name="simple-table">
7101
7145
 
7146
+ <xsl:variable name="table_without_semantic_elements">
7147
+ <xsl:apply-templates mode="update_xml_pres"/>
7148
+ </xsl:variable>
7149
+
7102
7150
  <!-- Step 0. replace <br/> to <p>...</p> -->
7103
7151
  <xsl:variable name="table_without_br">
7104
- <xsl:apply-templates mode="table-without-br"/>
7152
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
7153
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
7105
7154
  </xsl:variable>
7106
7155
 
7107
7156
  <!-- Step 1. colspan processing -->
@@ -11353,14 +11402,17 @@
11353
11402
  </fo:block>
11354
11403
  </xsl:template>
11355
11404
 
11356
- <xsl:template match="*[local-name() = 'domain']">
11405
+ <!-- <xsl:template match="*[local-name() = 'domain']"> -->
11357
11406
  <!-- https://github.com/metanorma/isodoc/issues/607
11358
11407
  <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
11359
11408
  <xsl:text> </xsl:text> -->
11360
- <xsl:if test="not(@hidden = 'true')">
11409
+ <!-- <xsl:if test="not(@hidden = 'true')">
11361
11410
  <xsl:apply-templates/>
11362
11411
  </xsl:if>
11363
- </xsl:template>
11412
+ </xsl:template> -->
11413
+
11414
+ <!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
11415
+ <xsl:template match="*[local-name() = 'domain']"/>
11364
11416
 
11365
11417
  <xsl:template match="*[local-name() = 'admitted']">
11366
11418
  <fo:block xsl:use-attribute-sets="admitted-style">
@@ -11375,9 +11427,11 @@
11375
11427
  </xsl:template>
11376
11428
 
11377
11429
  <xsl:template name="setStyle_preferred">
11378
- <xsl:if test="*[local-name() = 'strong']">
11379
- <xsl:attribute name="font-weight">normal</xsl:attribute>
11380
- </xsl:if>
11430
+
11431
+ <xsl:if test="*[local-name() = 'strong']">
11432
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
11433
+ </xsl:if>
11434
+
11381
11435
  </xsl:template>
11382
11436
 
11383
11437
  <!-- 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 +11441,17 @@
11387
11441
  </xsl:template>
11388
11442
  <!-- End Preferred, admitted, deprecated -->
11389
11443
 
11444
+ <xsl:template match="*[local-name() = 'fmt-related']">
11445
+ <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
11446
+ <xsl:apply-templates/>
11447
+ </fo:block>
11448
+ </xsl:template>
11449
+ <xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
11450
+ <fo:block>
11451
+ <xsl:apply-templates/>
11452
+ </fo:block>
11453
+ </xsl:template>
11454
+
11390
11455
  <!-- ========== -->
11391
11456
  <!-- definition -->
11392
11457
  <!-- ========== -->
@@ -12306,6 +12371,7 @@
12306
12371
 
12307
12372
  <!-- Normative references -->
12308
12373
  <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
12374
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
12309
12375
 
12310
12376
  <fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
12311
12377
 
@@ -13022,7 +13088,8 @@
13022
13088
  <!-- add @id - first element with @id plus '_element_name' -->
13023
13089
  <xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
13024
13090
  <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>
13091
+ <xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
13092
+ <xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
13026
13093
  </xsl:if>
13027
13094
  </xsl:template>
13028
13095
 
@@ -13079,6 +13146,31 @@
13079
13146
  <xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
13080
13147
  <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
13148
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
13149
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
13150
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
13151
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
13152
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
13153
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
13154
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
13155
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
13156
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
13157
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
13158
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
13159
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
13160
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
13161
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
13162
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
13163
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
13164
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
13165
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
13166
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
13167
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
13168
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
13169
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
13170
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
13171
+
13172
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
13173
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
13082
13174
 
13083
13175
  <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
13176
  <xsl:copy>
@@ -13111,13 +13203,115 @@
13111
13203
 
13112
13204
  <xsl:template match="*[local-name() = 'fmt-name']"/>
13113
13205
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
13114
- <xsl:element name="name" namespace="{$namespace_full}">
13206
+ <xsl:choose>
13207
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13208
+ <xsl:apply-templates mode="update_xml_step1"/>
13209
+ </xsl:when>
13210
+ <xsl:otherwise>
13211
+ <xsl:element name="name" namespace="{$namespace_full}">
13212
+ <xsl:copy-of select="@*"/>
13213
+ <xsl:apply-templates mode="update_xml_step1"/>
13214
+ </xsl:element>
13215
+ </xsl:otherwise>
13216
+ </xsl:choose>
13217
+ </xsl:template>
13218
+ <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
13219
+ <xsl:choose>
13220
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13221
+ <xsl:apply-templates mode="update_xml_step1"/>
13222
+ </xsl:when>
13223
+ <xsl:otherwise>
13224
+ <xsl:element name="name" namespace="{$namespace_full}">
13225
+ <xsl:copy-of select="@*"/>
13226
+ <xsl:apply-templates mode="update_xml_pres"/>
13227
+ </xsl:element>
13228
+ </xsl:otherwise>
13229
+ </xsl:choose>
13230
+ </xsl:template>
13231
+
13232
+ <xsl:template match="*[local-name() = 'fmt-preferred']"/>
13233
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
13234
+ <xsl:apply-templates mode="update_xml_step1"/>
13235
+ </xsl:template>
13236
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
13237
+ <xsl:element name="preferred" namespace="{$namespace_full}">
13115
13238
  <xsl:copy-of select="@*"/>
13116
13239
  <xsl:apply-templates mode="update_xml_step1"/>
13117
13240
  </xsl:element>
13118
13241
  </xsl:template>
13119
- <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
13120
- <xsl:element name="name" namespace="{$namespace_full}">
13242
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
13243
+ <xsl:apply-templates mode="update_xml_pres"/>
13244
+ </xsl:template>
13245
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
13246
+ <xsl:element name="preferred" namespace="{$namespace_full}">
13247
+ <xsl:copy-of select="@*"/>
13248
+ <xsl:apply-templates mode="update_xml_pres"/>
13249
+ </xsl:element>
13250
+ </xsl:template>
13251
+
13252
+ <xsl:template match="*[local-name() = 'fmt-admitted']"/>
13253
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
13254
+ <xsl:apply-templates mode="update_xml_step1"/>
13255
+ </xsl:template>
13256
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
13257
+ <xsl:element name="admitted" namespace="{$namespace_full}">
13258
+ <xsl:copy-of select="@*"/>
13259
+ <xsl:apply-templates mode="update_xml_step1"/>
13260
+ </xsl:element>
13261
+ </xsl:template>
13262
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
13263
+ <xsl:apply-templates mode="update_xml_pres"/>
13264
+ </xsl:template>
13265
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
13266
+ <xsl:element name="admitted" namespace="{$namespace_full}">
13267
+ <xsl:copy-of select="@*"/>
13268
+ <xsl:apply-templates mode="update_xml_pres"/>
13269
+ </xsl:element>
13270
+ </xsl:template>
13271
+
13272
+ <xsl:template match="*[local-name() = 'fmt-deprecates']"/>
13273
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
13274
+ <xsl:apply-templates mode="update_xml_step1"/>
13275
+ </xsl:template>
13276
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
13277
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
13278
+ <xsl:copy-of select="@*"/>
13279
+ <xsl:apply-templates mode="update_xml_step1"/>
13280
+ </xsl:element>
13281
+ </xsl:template>
13282
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
13283
+ <xsl:apply-templates mode="update_xml_pres"/>
13284
+ </xsl:template>
13285
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
13286
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
13287
+ <xsl:copy-of select="@*"/>
13288
+ <xsl:apply-templates mode="update_xml_pres"/>
13289
+ </xsl:element>
13290
+ </xsl:template>
13291
+
13292
+ <xsl:template match="*[local-name() = 'fmt-definition']"/>
13293
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
13294
+ <xsl:element name="definition" namespace="{$namespace_full}">
13295
+ <xsl:copy-of select="@*"/>
13296
+ <xsl:apply-templates mode="update_xml_step1"/>
13297
+ </xsl:element>
13298
+ </xsl:template>
13299
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
13300
+ <xsl:element name="definition" namespace="{$namespace_full}">
13301
+ <xsl:copy-of select="@*"/>
13302
+ <xsl:apply-templates mode="update_xml_pres"/>
13303
+ </xsl:element>
13304
+ </xsl:template>
13305
+
13306
+ <xsl:template match="*[local-name() = 'fmt-termsource']"/>
13307
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
13308
+ <xsl:element name="termsource" namespace="{$namespace_full}">
13309
+ <xsl:copy-of select="@*"/>
13310
+ <xsl:apply-templates mode="update_xml_step1"/>
13311
+ </xsl:element>
13312
+ </xsl:template>
13313
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
13314
+ <xsl:element name="termsource" namespace="{$namespace_full}">
13121
13315
  <xsl:copy-of select="@*"/>
13122
13316
  <xsl:apply-templates mode="update_xml_pres"/>
13123
13317
  </xsl:element>
@@ -13130,6 +13324,9 @@
13130
13324
  <xsl:apply-templates mode="update_xml_pres"/>
13131
13325
  </xsl:template>
13132
13326
 
13327
+ <xsl:template match="*[local-name() = 'semx']">
13328
+ <xsl:apply-templates/>
13329
+ </xsl:template>
13133
13330
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
13134
13331
  <xsl:apply-templates mode="update_xml_step1"/>
13135
13332
  </xsl:template>
@@ -14368,7 +14565,7 @@
14368
14565
  </xsl:template>
14369
14566
 
14370
14567
  <xsl:template name="namespaceCheck">
14371
- <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
14568
+ <xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
14372
14569
  <xsl:variable name="XSLNS">
14373
14570
 
14374
14571
  </xsl:variable>
@@ -14456,6 +14653,9 @@
14456
14653
  <xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
14457
14654
  <xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14458
14655
  </xsl:when>
14656
+ <xsl:when test="string-length($bibdata_updated) != ''">
14657
+ <xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14658
+ </xsl:when>
14459
14659
  <xsl:when test="$formatted = 'true'">
14460
14660
  <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14461
14661
  </xsl:when>
@@ -947,6 +947,8 @@ May be electronic (e.g. Twitter direct message, email) or voice (e.g. a remark m
947
947
  typically cited as "personal communication")</a:documentation>
948
948
  <value>conversation</value>
949
949
  <a:documentation>An exchange of messages between two or more persons. May be electronic (e.g. web chat) or voice (e.g. phone call)</a:documentation>
950
+ <value>collection</value>
951
+ <a:documentation>A compound resource consisting of other resources, which are themselves presupposed to have their type specified..</a:documentation>
950
952
  <value>misc</value>
951
953
  <a:documentation>Bibliographic type not adequately described in the foregoing</a:documentation>
952
954
  </choice>
@@ -1277,17 +1279,17 @@ for which this claim of validity is made, if applicable</a:documentation>
1277
1279
  </define>
1278
1280
  <define name="validityBegins">
1279
1281
  <element name="validityBegins">
1280
- <ref name="ISO8601DateTime"/>
1282
+ <ref name="ISO8601Date"/>
1281
1283
  </element>
1282
1284
  </define>
1283
1285
  <define name="validityEnds">
1284
1286
  <element name="validityEnds">
1285
- <ref name="ISO8601DateTime"/>
1287
+ <ref name="ISO8601Date"/>
1286
1288
  </element>
1287
1289
  </define>
1288
1290
  <define name="validityRevision">
1289
1291
  <element name="revision">
1290
- <ref name="ISO8601DateTime"/>
1292
+ <ref name="ISO8601Date"/>
1291
1293
  </element>
1292
1294
  </define>
1293
1295
  <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.16".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.16
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-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-jis