metanorma-ogc 2.6.10 → 2.6.12

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: 9b7024136877838d076972e6f8b4b43c5e3e0c1dceff36e204d45660621f459f
4
- data.tar.gz: 7c8c8dae713611cf78a7d7ac28a6a9b354016ac723649ad75df2bb654789f51f
3
+ metadata.gz: fc2727e5e894d6303e7a7993ddbb02e7f9c3cc33b6bb31b61bd6f08da9bae690
4
+ data.tar.gz: 5a288048cf0963d050a405f0261752f77143d0ebdb9e6164962c8b033de871a9
5
5
  SHA512:
6
- metadata.gz: 50f04a78ca6e8da12f3e499d251748f73a0cb4f728093aa814570e5f762e67da85d66041f7e13a4848aabe359b71b4053f9dc154c71ccb0ac5d8b02eee7535b5
7
- data.tar.gz: c7952103ecda423fef41abbdcdf0603c352be500bd3d9a23e700befec5ca92de105ad98a73ad59b333c977006cd0ede9ed31fa7b5893935eae55807955ecc731
6
+ metadata.gz: ed4064a33173b76169d51cf64cdcd6f7e4f390199ddaf94e3a16785169da5649ccde16f4c1c4f7d58804cbb9b9237bf91542e72d8b37893c963a9205c4d1f6e8
7
+ data.tar.gz: e62fbed59741654e4d57cc0f0832edcce763f9c2a852a6e597f0b858e326df3089223a13ada69842e15bf964b255c8aa0f50303c82f493f4cf6e87c6a3d4ac10
@@ -158,23 +158,23 @@
158
158
  <xsl:variable name="toc_recommendations_">
159
159
  <xsl:for-each select="//ogc:table[.//ogc:p[@class = 'RecommendationTitle']]">
160
160
  <xsl:variable name="table_id" select="@id"/>
161
- <recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]/text()}">
161
+ <recommendation alt-text="{.//ogc:p[@class = 'RecommendationTitle'][1]}">
162
162
  <xsl:copy-of select="@id"/>
163
163
  <xsl:variable name="title">
164
- <xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node()"/>
164
+ <xsl:apply-templates select=".//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/>
165
165
  <xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
166
166
  <xsl:text>: </xsl:text>
167
167
  <xsl:variable name="recommendationLabel">
168
- <tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()"/></tt>
168
+ <tt><xsl:copy-of select=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name/node()"/></tt>
169
169
  </xsl:variable>
170
170
  <xsl:apply-templates select="xalan:nodeset($recommendationLabel)/node()"/>
171
171
  </xsl:if>
172
172
  </xsl:variable>
173
173
  <xsl:variable name="bookmark">
174
- <xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/node())"/>
174
+ <xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationTitle'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
175
175
  <xsl:if test=".//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node()">
176
176
  <xsl:text>: </xsl:text>
177
- <xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/node())"/>
177
+ <xsl:value-of select="normalize-space(.//ogc:p[@class = 'RecommendationLabel'][ancestor::ogc:table[1][@id= $table_id]]/ogc:fmt-name)"/>
178
178
  </xsl:if>
179
179
  </xsl:variable>
180
180
  <xsl:variable name="regex_str" select="'^([^0-9]+) (\d+).*'"/>
@@ -897,12 +897,12 @@
897
897
  <fo:list-item-body start-indent="body-start()">
898
898
  <fo:block text-align-last="justify" margin-left="12mm" text-indent="-12mm">
899
899
  <fo:basic-link internal-destination="{@id}">
900
- <xsl:call-template name="setAltText">
901
- <xsl:with-param name="value" select="text()"/>
902
- </xsl:call-template>
903
900
  <xsl:variable name="sectionTitle">
904
901
  <xsl:apply-templates select="title"/>
905
902
  </xsl:variable>
903
+ <xsl:call-template name="setAltText">
904
+ <xsl:with-param name="value" select="concat(@section, $sectionTitle)"/>
905
+ </xsl:call-template>
906
906
  <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($sectionTitle))"/>
907
907
  <xsl:text> </xsl:text>
908
908
  <fo:inline keep-together.within-line="always">
@@ -3264,6 +3264,9 @@
3264
3264
 
3265
3265
  </xsl:attribute-set>
3266
3266
 
3267
+ <xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
3268
+ </xsl:attribute-set>
3269
+
3267
3270
  <xsl:attribute-set name="definition-style">
3268
3271
 
3269
3272
  <xsl:attribute name="space-after">6pt</xsl:attribute>
@@ -5538,7 +5541,9 @@
5538
5541
  <xsl:with-param name="element">
5539
5542
  <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 -->
5540
5543
  <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
5544
+
5541
5545
  <xsl:copy-of select="$current_fn_number_text"/>
5546
+
5542
5547
  </fo:inline>
5543
5548
  </fo:basic-link>
5544
5549
  </xsl:with-param>
@@ -5557,8 +5562,7 @@
5557
5562
 
5558
5563
  <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
5559
5564
 
5560
- <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
5561
-
5565
+ <xsl:variable name="fn_block">
5562
5566
  <xsl:call-template name="refine_fn-body-style"/>
5563
5567
 
5564
5568
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
@@ -5566,9 +5570,15 @@
5566
5570
  <xsl:call-template name="refine_fn-body-num-style"/>
5567
5571
 
5568
5572
  <xsl:value-of select="$current_fn_number_text"/>
5573
+
5569
5574
  </fo:inline>
5570
5575
  <xsl:apply-templates/>
5571
- </fo:block>
5576
+ </xsl:variable>
5577
+
5578
+ <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
5579
+ <xsl:copy-of select="$fn_block"/>
5580
+ </fo:block>
5581
+
5572
5582
  </fo:block-container>
5573
5583
  </fo:footnote-body>
5574
5584
  </fo:footnote>
@@ -7358,9 +7368,14 @@
7358
7368
 
7359
7369
  <xsl:variable name="simple-table">
7360
7370
 
7371
+ <xsl:variable name="table_without_semantic_elements">
7372
+ <xsl:apply-templates mode="update_xml_pres"/>
7373
+ </xsl:variable>
7374
+
7361
7375
  <!-- Step 0. replace <br/> to <p>...</p> -->
7362
7376
  <xsl:variable name="table_without_br">
7363
- <xsl:apply-templates mode="table-without-br"/>
7377
+ <!-- <xsl:apply-templates mode="table-without-br"/> -->
7378
+ <xsl:apply-templates select="xalan:nodeset($table_without_semantic_elements)" mode="table-without-br"/>
7364
7379
  </xsl:variable>
7365
7380
 
7366
7381
  <!-- Step 1. colspan processing -->
@@ -11625,14 +11640,17 @@
11625
11640
  </fo:block>
11626
11641
  </xsl:template>
11627
11642
 
11628
- <xsl:template match="*[local-name() = 'domain']">
11643
+ <!-- <xsl:template match="*[local-name() = 'domain']"> -->
11629
11644
  <!-- https://github.com/metanorma/isodoc/issues/607
11630
11645
  <fo:inline xsl:use-attribute-sets="domain-style">&lt;<xsl:apply-templates/>&gt;</fo:inline>
11631
11646
  <xsl:text> </xsl:text> -->
11632
- <xsl:if test="not(@hidden = 'true')">
11647
+ <!-- <xsl:if test="not(@hidden = 'true')">
11633
11648
  <xsl:apply-templates/>
11634
11649
  </xsl:if>
11635
- </xsl:template>
11650
+ </xsl:template> -->
11651
+
11652
+ <!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
11653
+ <xsl:template match="*[local-name() = 'domain']"/>
11636
11654
 
11637
11655
  <xsl:template match="*[local-name() = 'admitted']">
11638
11656
  <fo:block xsl:use-attribute-sets="admitted-style">
@@ -11647,9 +11665,11 @@
11647
11665
  </xsl:template>
11648
11666
 
11649
11667
  <xsl:template name="setStyle_preferred">
11650
- <xsl:if test="*[local-name() = 'strong']">
11651
- <xsl:attribute name="font-weight">normal</xsl:attribute>
11652
- </xsl:if>
11668
+
11669
+ <xsl:if test="*[local-name() = 'strong']">
11670
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
11671
+ </xsl:if>
11672
+
11653
11673
  </xsl:template>
11654
11674
 
11655
11675
  <!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
@@ -11659,6 +11679,17 @@
11659
11679
  </xsl:template>
11660
11680
  <!-- End Preferred, admitted, deprecated -->
11661
11681
 
11682
+ <xsl:template match="*[local-name() = 'fmt-related']">
11683
+ <fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
11684
+ <xsl:apply-templates/>
11685
+ </fo:block>
11686
+ </xsl:template>
11687
+ <xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
11688
+ <fo:block>
11689
+ <xsl:apply-templates/>
11690
+ </fo:block>
11691
+ </xsl:template>
11692
+
11662
11693
  <!-- ========== -->
11663
11694
  <!-- definition -->
11664
11695
  <!-- ========== -->
@@ -12563,6 +12594,7 @@
12563
12594
 
12564
12595
  <!-- Normative references -->
12565
12596
  <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
12597
+ <xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
12566
12598
 
12567
12599
  <fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
12568
12600
 
@@ -13286,7 +13318,8 @@
13286
13318
  <!-- add @id - first element with @id plus '_element_name' -->
13287
13319
  <xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
13288
13320
  <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>
13289
- <xsl:attribute name="id"><xsl:value-of select="$prefix_id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
13321
+ <xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
13322
+ <xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
13290
13323
  </xsl:if>
13291
13324
  </xsl:template>
13292
13325
 
@@ -13343,6 +13376,31 @@
13343
13376
  <xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
13344
13377
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
13345
13378
  <xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
13379
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
13380
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
13381
+ <!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
13382
+ <xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
13383
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
13384
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
13385
+ <!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
13386
+ <xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
13387
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
13388
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
13389
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
13390
+ <!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
13391
+ <xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
13392
+ <xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
13393
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
13394
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
13395
+ <!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
13396
+ <xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
13397
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
13398
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
13399
+ <!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
13400
+ <xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
13401
+
13402
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
13403
+ <xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
13346
13404
 
13347
13405
  <xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
13348
13406
  <xsl:copy>
@@ -13375,13 +13433,115 @@
13375
13433
 
13376
13434
  <xsl:template match="*[local-name() = 'fmt-name']"/>
13377
13435
  <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
13378
- <xsl:element name="name" namespace="{$namespace_full}">
13436
+ <xsl:choose>
13437
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13438
+ <xsl:apply-templates mode="update_xml_step1"/>
13439
+ </xsl:when>
13440
+ <xsl:otherwise>
13441
+ <xsl:element name="name" namespace="{$namespace_full}">
13442
+ <xsl:copy-of select="@*"/>
13443
+ <xsl:apply-templates mode="update_xml_step1"/>
13444
+ </xsl:element>
13445
+ </xsl:otherwise>
13446
+ </xsl:choose>
13447
+ </xsl:template>
13448
+ <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
13449
+ <xsl:choose>
13450
+ <xsl:when test="local-name(..) = 'p' and ancestor::*[local-name() = 'table']">
13451
+ <xsl:apply-templates mode="update_xml_step1"/>
13452
+ </xsl:when>
13453
+ <xsl:otherwise>
13454
+ <xsl:element name="name" namespace="{$namespace_full}">
13455
+ <xsl:copy-of select="@*"/>
13456
+ <xsl:apply-templates mode="update_xml_pres"/>
13457
+ </xsl:element>
13458
+ </xsl:otherwise>
13459
+ </xsl:choose>
13460
+ </xsl:template>
13461
+
13462
+ <xsl:template match="*[local-name() = 'fmt-preferred']"/>
13463
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
13464
+ <xsl:apply-templates mode="update_xml_step1"/>
13465
+ </xsl:template>
13466
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
13467
+ <xsl:element name="preferred" namespace="{$namespace_full}">
13379
13468
  <xsl:copy-of select="@*"/>
13380
13469
  <xsl:apply-templates mode="update_xml_step1"/>
13381
13470
  </xsl:element>
13382
13471
  </xsl:template>
13383
- <xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_pres">
13384
- <xsl:element name="name" namespace="{$namespace_full}">
13472
+ <xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
13473
+ <xsl:apply-templates mode="update_xml_pres"/>
13474
+ </xsl:template>
13475
+ <xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
13476
+ <xsl:element name="preferred" namespace="{$namespace_full}">
13477
+ <xsl:copy-of select="@*"/>
13478
+ <xsl:apply-templates mode="update_xml_pres"/>
13479
+ </xsl:element>
13480
+ </xsl:template>
13481
+
13482
+ <xsl:template match="*[local-name() = 'fmt-admitted']"/>
13483
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
13484
+ <xsl:apply-templates mode="update_xml_step1"/>
13485
+ </xsl:template>
13486
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
13487
+ <xsl:element name="admitted" namespace="{$namespace_full}">
13488
+ <xsl:copy-of select="@*"/>
13489
+ <xsl:apply-templates mode="update_xml_step1"/>
13490
+ </xsl:element>
13491
+ </xsl:template>
13492
+ <xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
13493
+ <xsl:apply-templates mode="update_xml_pres"/>
13494
+ </xsl:template>
13495
+ <xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
13496
+ <xsl:element name="admitted" namespace="{$namespace_full}">
13497
+ <xsl:copy-of select="@*"/>
13498
+ <xsl:apply-templates mode="update_xml_pres"/>
13499
+ </xsl:element>
13500
+ </xsl:template>
13501
+
13502
+ <xsl:template match="*[local-name() = 'fmt-deprecates']"/>
13503
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
13504
+ <xsl:apply-templates mode="update_xml_step1"/>
13505
+ </xsl:template>
13506
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
13507
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
13508
+ <xsl:copy-of select="@*"/>
13509
+ <xsl:apply-templates mode="update_xml_step1"/>
13510
+ </xsl:element>
13511
+ </xsl:template>
13512
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
13513
+ <xsl:apply-templates mode="update_xml_pres"/>
13514
+ </xsl:template>
13515
+ <xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
13516
+ <xsl:element name="deprecates" namespace="{$namespace_full}">
13517
+ <xsl:copy-of select="@*"/>
13518
+ <xsl:apply-templates mode="update_xml_pres"/>
13519
+ </xsl:element>
13520
+ </xsl:template>
13521
+
13522
+ <xsl:template match="*[local-name() = 'fmt-definition']"/>
13523
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
13524
+ <xsl:element name="definition" namespace="{$namespace_full}">
13525
+ <xsl:copy-of select="@*"/>
13526
+ <xsl:apply-templates mode="update_xml_step1"/>
13527
+ </xsl:element>
13528
+ </xsl:template>
13529
+ <xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
13530
+ <xsl:element name="definition" namespace="{$namespace_full}">
13531
+ <xsl:copy-of select="@*"/>
13532
+ <xsl:apply-templates mode="update_xml_pres"/>
13533
+ </xsl:element>
13534
+ </xsl:template>
13535
+
13536
+ <xsl:template match="*[local-name() = 'fmt-termsource']"/>
13537
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
13538
+ <xsl:element name="termsource" namespace="{$namespace_full}">
13539
+ <xsl:copy-of select="@*"/>
13540
+ <xsl:apply-templates mode="update_xml_step1"/>
13541
+ </xsl:element>
13542
+ </xsl:template>
13543
+ <xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
13544
+ <xsl:element name="termsource" namespace="{$namespace_full}">
13385
13545
  <xsl:copy-of select="@*"/>
13386
13546
  <xsl:apply-templates mode="update_xml_pres"/>
13387
13547
  </xsl:element>
@@ -13394,6 +13554,9 @@
13394
13554
  <xsl:apply-templates mode="update_xml_pres"/>
13395
13555
  </xsl:template>
13396
13556
 
13557
+ <xsl:template match="*[local-name() = 'semx']">
13558
+ <xsl:apply-templates/>
13559
+ </xsl:template>
13397
13560
  <xsl:template match="*[local-name() = 'semx']" mode="update_xml_step1">
13398
13561
  <xsl:apply-templates mode="update_xml_step1"/>
13399
13562
  </xsl:template>
@@ -14518,7 +14681,7 @@
14518
14681
  </xsl:template>
14519
14682
 
14520
14683
  <xsl:template name="namespaceCheck">
14521
- <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
14684
+ <xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
14522
14685
  <xsl:variable name="XSLNS">
14523
14686
 
14524
14687
  <xsl:value-of select="document('')//*/namespace::ogc"/>
@@ -14608,6 +14771,9 @@
14608
14771
  <xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
14609
14772
  <xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14610
14773
  </xsl:when>
14774
+ <xsl:when test="string-length($bibdata_updated) != ''">
14775
+ <xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14776
+ </xsl:when>
14611
14777
  <xsl:when test="$formatted = 'true'">
14612
14778
  <xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
14613
14779
  </xsl:when>