metanorma-ogc 2.6.10 → 2.6.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +158 -14
- data/lib/isodoc/ogc/ogc.best-practice.xsl +158 -14
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +158 -14
- data/lib/isodoc/ogc/ogc.community-practice.xsl +158 -14
- data/lib/isodoc/ogc/ogc.community-standard.xsl +158 -14
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +158 -14
- data/lib/isodoc/ogc/ogc.draft-standard.xsl +158 -14
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +158 -14
- data/lib/isodoc/ogc/ogc.other.xsl +158 -14
- data/lib/isodoc/ogc/ogc.policy.xsl +158 -14
- data/lib/isodoc/ogc/ogc.reference-model.xsl +158 -14
- data/lib/isodoc/ogc/ogc.release-notes.xsl +158 -14
- data/lib/isodoc/ogc/ogc.standard.xsl +158 -14
- data/lib/isodoc/ogc/ogc.test-suite.xsl +158 -14
- data/lib/isodoc/ogc/ogc.user-guide.xsl +158 -14
- data/lib/isodoc/ogc/ogc.white-paper.xsl +155 -11
- data/lib/isodoc/ogc/presentation_xml_convert.rb +15 -3
- data/lib/metanorma/ogc/biblio.rng +3 -3
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -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
|
-
<
|
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
|
-
</
|
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>
|
@@ -11625,14 +11635,17 @@
|
|
11625
11635
|
</fo:block>
|
11626
11636
|
</xsl:template>
|
11627
11637
|
|
11628
|
-
<xsl:template match="*[local-name() = 'domain']">
|
11638
|
+
<!-- <xsl:template match="*[local-name() = 'domain']"> -->
|
11629
11639
|
<!-- https://github.com/metanorma/isodoc/issues/607
|
11630
11640
|
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
11631
11641
|
<xsl:text> </xsl:text> -->
|
11632
|
-
<xsl:if test="not(@hidden = 'true')">
|
11642
|
+
<!-- <xsl:if test="not(@hidden = 'true')">
|
11633
11643
|
<xsl:apply-templates/>
|
11634
11644
|
</xsl:if>
|
11635
|
-
</xsl:template>
|
11645
|
+
</xsl:template> -->
|
11646
|
+
|
11647
|
+
<!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
|
11648
|
+
<xsl:template match="*[local-name() = 'domain']"/>
|
11636
11649
|
|
11637
11650
|
<xsl:template match="*[local-name() = 'admitted']">
|
11638
11651
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
@@ -11647,9 +11660,11 @@
|
|
11647
11660
|
</xsl:template>
|
11648
11661
|
|
11649
11662
|
<xsl:template name="setStyle_preferred">
|
11650
|
-
|
11651
|
-
|
11652
|
-
|
11663
|
+
|
11664
|
+
<xsl:if test="*[local-name() = 'strong']">
|
11665
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
11666
|
+
</xsl:if>
|
11667
|
+
|
11653
11668
|
</xsl:template>
|
11654
11669
|
|
11655
11670
|
<!-- 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 +11674,17 @@
|
|
11659
11674
|
</xsl:template>
|
11660
11675
|
<!-- End Preferred, admitted, deprecated -->
|
11661
11676
|
|
11677
|
+
<xsl:template match="*[local-name() = 'fmt-related']">
|
11678
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
11679
|
+
<xsl:apply-templates/>
|
11680
|
+
</fo:block>
|
11681
|
+
</xsl:template>
|
11682
|
+
<xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
|
11683
|
+
<fo:block>
|
11684
|
+
<xsl:apply-templates/>
|
11685
|
+
</fo:block>
|
11686
|
+
</xsl:template>
|
11687
|
+
|
11662
11688
|
<!-- ========== -->
|
11663
11689
|
<!-- definition -->
|
11664
11690
|
<!-- ========== -->
|
@@ -12563,6 +12589,7 @@
|
|
12563
12589
|
|
12564
12590
|
<!-- Normative references -->
|
12565
12591
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
12592
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
12566
12593
|
|
12567
12594
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
12568
12595
|
|
@@ -13286,7 +13313,8 @@
|
|
13286
13313
|
<!-- add @id - first element with @id plus '_element_name' -->
|
13287
13314
|
<xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
|
13288
13315
|
<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:
|
13316
|
+
<xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
|
13317
|
+
<xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
|
13290
13318
|
</xsl:if>
|
13291
13319
|
</xsl:template>
|
13292
13320
|
|
@@ -13343,6 +13371,31 @@
|
|
13343
13371
|
<xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
|
13344
13372
|
<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
13373
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
|
13374
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
13375
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
|
13376
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
|
13377
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
|
13378
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
13379
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
|
13380
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
|
13381
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
|
13382
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
|
13383
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
|
13384
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
|
13385
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
|
13386
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
|
13387
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
|
13388
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
|
13389
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
|
13390
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
|
13391
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
|
13392
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
|
13393
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
|
13394
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
|
13395
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
|
13396
|
+
|
13397
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
13398
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
|
13346
13399
|
|
13347
13400
|
<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
13401
|
<xsl:copy>
|
@@ -13387,6 +13440,94 @@
|
|
13387
13440
|
</xsl:element>
|
13388
13441
|
</xsl:template>
|
13389
13442
|
|
13443
|
+
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
13444
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
|
13445
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13446
|
+
</xsl:template>
|
13447
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
|
13448
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
13449
|
+
<xsl:copy-of select="@*"/>
|
13450
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13451
|
+
</xsl:element>
|
13452
|
+
</xsl:template>
|
13453
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
|
13454
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13455
|
+
</xsl:template>
|
13456
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
|
13457
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
13458
|
+
<xsl:copy-of select="@*"/>
|
13459
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13460
|
+
</xsl:element>
|
13461
|
+
</xsl:template>
|
13462
|
+
|
13463
|
+
<xsl:template match="*[local-name() = 'fmt-admitted']"/>
|
13464
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
|
13465
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13466
|
+
</xsl:template>
|
13467
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
|
13468
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
13469
|
+
<xsl:copy-of select="@*"/>
|
13470
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13471
|
+
</xsl:element>
|
13472
|
+
</xsl:template>
|
13473
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
|
13474
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13475
|
+
</xsl:template>
|
13476
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
|
13477
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
13478
|
+
<xsl:copy-of select="@*"/>
|
13479
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13480
|
+
</xsl:element>
|
13481
|
+
</xsl:template>
|
13482
|
+
|
13483
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates']"/>
|
13484
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
|
13485
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13486
|
+
</xsl:template>
|
13487
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
|
13488
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
13489
|
+
<xsl:copy-of select="@*"/>
|
13490
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13491
|
+
</xsl:element>
|
13492
|
+
</xsl:template>
|
13493
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
|
13494
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13495
|
+
</xsl:template>
|
13496
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
|
13497
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
13498
|
+
<xsl:copy-of select="@*"/>
|
13499
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13500
|
+
</xsl:element>
|
13501
|
+
</xsl:template>
|
13502
|
+
|
13503
|
+
<xsl:template match="*[local-name() = 'fmt-definition']"/>
|
13504
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
|
13505
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
13506
|
+
<xsl:copy-of select="@*"/>
|
13507
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13508
|
+
</xsl:element>
|
13509
|
+
</xsl:template>
|
13510
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
|
13511
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
13512
|
+
<xsl:copy-of select="@*"/>
|
13513
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13514
|
+
</xsl:element>
|
13515
|
+
</xsl:template>
|
13516
|
+
|
13517
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']"/>
|
13518
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
|
13519
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
13520
|
+
<xsl:copy-of select="@*"/>
|
13521
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
13522
|
+
</xsl:element>
|
13523
|
+
</xsl:template>
|
13524
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
|
13525
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
13526
|
+
<xsl:copy-of select="@*"/>
|
13527
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
13528
|
+
</xsl:element>
|
13529
|
+
</xsl:template>
|
13530
|
+
|
13390
13531
|
<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">
|
13391
13532
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13392
13533
|
</xsl:template>
|
@@ -14518,7 +14659,7 @@
|
|
14518
14659
|
</xsl:template>
|
14519
14660
|
|
14520
14661
|
<xsl:template name="namespaceCheck">
|
14521
|
-
<xsl:variable name="documentNS" select="namespace-uri(/*)
|
14662
|
+
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
|
14522
14663
|
<xsl:variable name="XSLNS">
|
14523
14664
|
|
14524
14665
|
<xsl:value-of select="document('')//*/namespace::ogc"/>
|
@@ -14608,6 +14749,9 @@
|
|
14608
14749
|
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
|
14609
14750
|
<xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
14610
14751
|
</xsl:when>
|
14752
|
+
<xsl:when test="string-length($bibdata_updated) != ''">
|
14753
|
+
<xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
14754
|
+
</xsl:when>
|
14611
14755
|
<xsl:when test="$formatted = 'true'">
|
14612
14756
|
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
14613
14757
|
</xsl:when>
|
@@ -2026,6 +2026,9 @@
|
|
2026
2026
|
|
2027
2027
|
</xsl:attribute-set>
|
2028
2028
|
|
2029
|
+
<xsl:attribute-set name="related-block-style" use-attribute-sets="preferred-block-style">
|
2030
|
+
</xsl:attribute-set>
|
2031
|
+
|
2029
2032
|
<xsl:attribute-set name="definition-style">
|
2030
2033
|
|
2031
2034
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
@@ -4306,7 +4309,9 @@
|
|
4306
4309
|
<xsl:with-param name="element">
|
4307
4310
|
<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 -->
|
4308
4311
|
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
|
4312
|
+
|
4309
4313
|
<xsl:copy-of select="$current_fn_number_text"/>
|
4314
|
+
|
4310
4315
|
</fo:inline>
|
4311
4316
|
</fo:basic-link>
|
4312
4317
|
</xsl:with-param>
|
@@ -4325,8 +4330,7 @@
|
|
4325
4330
|
|
4326
4331
|
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
4327
4332
|
|
4328
|
-
<
|
4329
|
-
|
4333
|
+
<xsl:variable name="fn_block">
|
4330
4334
|
<xsl:call-template name="refine_fn-body-style"/>
|
4331
4335
|
|
4332
4336
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
@@ -4334,9 +4338,15 @@
|
|
4334
4338
|
<xsl:call-template name="refine_fn-body-num-style"/>
|
4335
4339
|
|
4336
4340
|
<xsl:value-of select="$current_fn_number_text"/>
|
4341
|
+
|
4337
4342
|
</fo:inline>
|
4338
4343
|
<xsl:apply-templates/>
|
4339
|
-
</
|
4344
|
+
</xsl:variable>
|
4345
|
+
|
4346
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
4347
|
+
<xsl:copy-of select="$fn_block"/>
|
4348
|
+
</fo:block>
|
4349
|
+
|
4340
4350
|
</fo:block-container>
|
4341
4351
|
</fo:footnote-body>
|
4342
4352
|
</fo:footnote>
|
@@ -10384,14 +10394,17 @@
|
|
10384
10394
|
</fo:block>
|
10385
10395
|
</xsl:template>
|
10386
10396
|
|
10387
|
-
<xsl:template match="*[local-name() = 'domain']">
|
10397
|
+
<!-- <xsl:template match="*[local-name() = 'domain']"> -->
|
10388
10398
|
<!-- https://github.com/metanorma/isodoc/issues/607
|
10389
10399
|
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
10390
10400
|
<xsl:text> </xsl:text> -->
|
10391
|
-
<xsl:if test="not(@hidden = 'true')">
|
10401
|
+
<!-- <xsl:if test="not(@hidden = 'true')">
|
10392
10402
|
<xsl:apply-templates/>
|
10393
10403
|
</xsl:if>
|
10394
|
-
</xsl:template>
|
10404
|
+
</xsl:template> -->
|
10405
|
+
|
10406
|
+
<!-- https://github.com/metanorma/isodoc/issues/632#issuecomment-2567163931 -->
|
10407
|
+
<xsl:template match="*[local-name() = 'domain']"/>
|
10395
10408
|
|
10396
10409
|
<xsl:template match="*[local-name() = 'admitted']">
|
10397
10410
|
<fo:block xsl:use-attribute-sets="admitted-style">
|
@@ -10406,9 +10419,11 @@
|
|
10406
10419
|
</xsl:template>
|
10407
10420
|
|
10408
10421
|
<xsl:template name="setStyle_preferred">
|
10409
|
-
|
10410
|
-
|
10411
|
-
|
10422
|
+
|
10423
|
+
<xsl:if test="*[local-name() = 'strong']">
|
10424
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
10425
|
+
</xsl:if>
|
10426
|
+
|
10412
10427
|
</xsl:template>
|
10413
10428
|
|
10414
10429
|
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
|
@@ -10418,6 +10433,17 @@
|
|
10418
10433
|
</xsl:template>
|
10419
10434
|
<!-- End Preferred, admitted, deprecated -->
|
10420
10435
|
|
10436
|
+
<xsl:template match="*[local-name() = 'fmt-related']">
|
10437
|
+
<fo:block role="SKIP" xsl:use-attribute-sets="related-block-style">
|
10438
|
+
<xsl:apply-templates/>
|
10439
|
+
</fo:block>
|
10440
|
+
</xsl:template>
|
10441
|
+
<xsl:template match="*[local-name() = 'fmt-related']/*[local-name() = 'p']" priority="4">
|
10442
|
+
<fo:block>
|
10443
|
+
<xsl:apply-templates/>
|
10444
|
+
</fo:block>
|
10445
|
+
</xsl:template>
|
10446
|
+
|
10421
10447
|
<!-- ========== -->
|
10422
10448
|
<!-- definition -->
|
10423
10449
|
<!-- ========== -->
|
@@ -11322,6 +11348,7 @@
|
|
11322
11348
|
|
11323
11349
|
<!-- Normative references -->
|
11324
11350
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
11351
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
11325
11352
|
|
11326
11353
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
11327
11354
|
|
@@ -12045,7 +12072,8 @@
|
|
12045
12072
|
<!-- add @id - first element with @id plus '_element_name' -->
|
12046
12073
|
<xsl:variable name="prefix_id_" select="(.//*[@id])[1]/@id"/>
|
12047
12074
|
<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>
|
12048
|
-
<xsl:
|
12075
|
+
<xsl:variable name="document_suffix" select="ancestor::*[contains(local-name(), '-standard')]/@document_suffix"/>
|
12076
|
+
<xsl:attribute name="id"><xsl:value-of select="concat($prefix_id, '_', local-name(), '_', $document_suffix)"/></xsl:attribute>
|
12049
12077
|
</xsl:if>
|
12050
12078
|
</xsl:template>
|
12051
12079
|
|
@@ -12102,6 +12130,31 @@
|
|
12102
12130
|
<xsl:template match="*[local-name() = 'name'][following-sibling::*[1][local-name() = 'fmt-name']]" mode="update_xml_pres"/>
|
12103
12131
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
12104
12132
|
<xsl:template match="*[local-name() = 'section-title'][following-sibling::*[1][local-name() = 'p'][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_pres"/>
|
12133
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
12134
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_step1"/>
|
12135
|
+
<!-- <xsl:template match="*[local-name() = 'preferred'][following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_pres"/> -->
|
12136
|
+
<xsl:template match="*[local-name() = 'preferred']" mode="update_xml_pres"/>
|
12137
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
12138
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_step1"/>
|
12139
|
+
<!-- <xsl:template match="*[local-name() = 'admitted'][following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_pres"/> -->
|
12140
|
+
<xsl:template match="*[local-name() = 'admitted']" mode="update_xml_pres"/>
|
12141
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_step1"/> -->
|
12142
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_step1"/>
|
12143
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_step1"/>
|
12144
|
+
<!-- <xsl:template match="*[local-name() = 'deprecates'][following-sibling::*[not(local-name() = 'deprecates')][1][local-name() = 'fmt-deprecates']]" mode="update_xml_pres"/> -->
|
12145
|
+
<xsl:template match="*[local-name() = 'deprecates']" mode="update_xml_pres"/>
|
12146
|
+
<xsl:template match="*[local-name() = 'related']" mode="update_xml_pres"/>
|
12147
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_step1"/> -->
|
12148
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_step1"/>
|
12149
|
+
<!-- <xsl:template match="*[local-name() = 'definition'][following-sibling::*[1][local-name() = 'fmt-definition']]" mode="update_xml_pres"/> -->
|
12150
|
+
<xsl:template match="*[local-name() = 'definition']" mode="update_xml_pres"/>
|
12151
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_step1"/> -->
|
12152
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_step1"/>
|
12153
|
+
<!-- <xsl:template match="*[local-name() = 'termsource'][following-sibling::*[1][local-name() = 'fmt-termsource']]" mode="update_xml_pres"/> -->
|
12154
|
+
<xsl:template match="*[local-name() = 'termsource']" mode="update_xml_pres"/>
|
12155
|
+
|
12156
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
12157
|
+
<xsl:template match="*[local-name() = 'term'][@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_pres"/>
|
12105
12158
|
|
12106
12159
|
<xsl:template match="*[local-name() = 'p'][@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][local-name() = 'section-title']]" mode="update_xml_step1">
|
12107
12160
|
<xsl:copy>
|
@@ -12146,6 +12199,94 @@
|
|
12146
12199
|
</xsl:element>
|
12147
12200
|
</xsl:template>
|
12148
12201
|
|
12202
|
+
<xsl:template match="*[local-name() = 'fmt-preferred']"/>
|
12203
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_step1">
|
12204
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12205
|
+
</xsl:template>
|
12206
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_step1">
|
12207
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
12208
|
+
<xsl:copy-of select="@*"/>
|
12209
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12210
|
+
</xsl:element>
|
12211
|
+
</xsl:template>
|
12212
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][*[local-name() = 'p']]" mode="update_xml_pres">
|
12213
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12214
|
+
</xsl:template>
|
12215
|
+
<xsl:template match="*[local-name() = 'fmt-preferred'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-preferred']/*[local-name() = 'p']" mode="update_xml_pres">
|
12216
|
+
<xsl:element name="preferred" namespace="{$namespace_full}">
|
12217
|
+
<xsl:copy-of select="@*"/>
|
12218
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12219
|
+
</xsl:element>
|
12220
|
+
</xsl:template>
|
12221
|
+
|
12222
|
+
<xsl:template match="*[local-name() = 'fmt-admitted']"/>
|
12223
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_step1">
|
12224
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12225
|
+
</xsl:template>
|
12226
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_step1">
|
12227
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
12228
|
+
<xsl:copy-of select="@*"/>
|
12229
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12230
|
+
</xsl:element>
|
12231
|
+
</xsl:template>
|
12232
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][*[local-name() = 'p']]" mode="update_xml_pres">
|
12233
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12234
|
+
</xsl:template>
|
12235
|
+
<xsl:template match="*[local-name() = 'fmt-admitted'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-admitted']/*[local-name() = 'p']" mode="update_xml_pres">
|
12236
|
+
<xsl:element name="admitted" namespace="{$namespace_full}">
|
12237
|
+
<xsl:copy-of select="@*"/>
|
12238
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12239
|
+
</xsl:element>
|
12240
|
+
</xsl:template>
|
12241
|
+
|
12242
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates']"/>
|
12243
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_step1">
|
12244
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12245
|
+
</xsl:template>
|
12246
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_step1">
|
12247
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
12248
|
+
<xsl:copy-of select="@*"/>
|
12249
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12250
|
+
</xsl:element>
|
12251
|
+
</xsl:template>
|
12252
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][*[local-name() = 'p']]" mode="update_xml_pres">
|
12253
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12254
|
+
</xsl:template>
|
12255
|
+
<xsl:template match="*[local-name() = 'fmt-deprecates'][not(*[local-name() = 'p'])] | *[local-name() = 'fmt-deprecates']/*[local-name() = 'p']" mode="update_xml_pres">
|
12256
|
+
<xsl:element name="deprecates" namespace="{$namespace_full}">
|
12257
|
+
<xsl:copy-of select="@*"/>
|
12258
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12259
|
+
</xsl:element>
|
12260
|
+
</xsl:template>
|
12261
|
+
|
12262
|
+
<xsl:template match="*[local-name() = 'fmt-definition']"/>
|
12263
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_step1">
|
12264
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
12265
|
+
<xsl:copy-of select="@*"/>
|
12266
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12267
|
+
</xsl:element>
|
12268
|
+
</xsl:template>
|
12269
|
+
<xsl:template match="*[local-name() = 'fmt-definition']" mode="update_xml_pres">
|
12270
|
+
<xsl:element name="definition" namespace="{$namespace_full}">
|
12271
|
+
<xsl:copy-of select="@*"/>
|
12272
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12273
|
+
</xsl:element>
|
12274
|
+
</xsl:template>
|
12275
|
+
|
12276
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']"/>
|
12277
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_step1">
|
12278
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
12279
|
+
<xsl:copy-of select="@*"/>
|
12280
|
+
<xsl:apply-templates mode="update_xml_step1"/>
|
12281
|
+
</xsl:element>
|
12282
|
+
</xsl:template>
|
12283
|
+
<xsl:template match="*[local-name() = 'fmt-termsource']" mode="update_xml_pres">
|
12284
|
+
<xsl:element name="termsource" namespace="{$namespace_full}">
|
12285
|
+
<xsl:copy-of select="@*"/>
|
12286
|
+
<xsl:apply-templates mode="update_xml_pres"/>
|
12287
|
+
</xsl:element>
|
12288
|
+
</xsl:template>
|
12289
|
+
|
12149
12290
|
<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">
|
12150
12291
|
<xsl:apply-templates mode="update_xml_step1"/>
|
12151
12292
|
</xsl:template>
|
@@ -13277,7 +13418,7 @@
|
|
13277
13418
|
</xsl:template>
|
13278
13419
|
|
13279
13420
|
<xsl:template name="namespaceCheck">
|
13280
|
-
<xsl:variable name="documentNS" select="namespace-uri(/*)
|
13421
|
+
<xsl:variable name="documentNS" select="$namespace_full"/> <!-- namespace-uri(/*) -->
|
13281
13422
|
<xsl:variable name="XSLNS">
|
13282
13423
|
|
13283
13424
|
<xsl:value-of select="document('')//*/namespace::ogc"/>
|
@@ -13367,6 +13508,9 @@
|
|
13367
13508
|
<xsl:when test="$formatted = 'true' and string-length($bibdata_updated) != ''">
|
13368
13509
|
<xsl:apply-templates select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13369
13510
|
</xsl:when>
|
13511
|
+
<xsl:when test="string-length($bibdata_updated) != ''">
|
13512
|
+
<xsl:value-of select="xalan:nodeset($bibdata_updated)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13513
|
+
</xsl:when>
|
13370
13514
|
<xsl:when test="$formatted = 'true'">
|
13371
13515
|
<xsl:apply-templates select="xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
13372
13516
|
</xsl:when>
|
@@ -145,7 +145,8 @@ module IsoDoc
|
|
145
145
|
%i(arabic alphabet roman alphabet_upper roman_upper)[(idx - 1) % 5]
|
146
146
|
end
|
147
147
|
|
148
|
-
|
148
|
+
# KILL
|
149
|
+
def termsource1xx(elem)
|
149
150
|
while elem&.next_element&.name == "termsource"
|
150
151
|
elem << "; #{to_xml(elem.next_element.remove.children)}"
|
151
152
|
end
|
@@ -153,6 +154,11 @@ module IsoDoc
|
|
153
154
|
"#{to_xml(elem.children).strip}]")
|
154
155
|
end
|
155
156
|
|
157
|
+
def termsource_label(elem, sources)
|
158
|
+
elem.replace(l10n("[<strong>#{@i18n.source}:</strong> " \
|
159
|
+
"#{sources}]"))
|
160
|
+
end
|
161
|
+
|
156
162
|
def bibliography_bibitem_number_skip(bibitem)
|
157
163
|
implicit_reference(bibitem) ||
|
158
164
|
bibitem.at(ns(".//docidentifier[@type = 'metanorma-ordinal']")) ||
|
@@ -181,13 +187,19 @@ module IsoDoc
|
|
181
187
|
end
|
182
188
|
|
183
189
|
def deprecates(elem)
|
184
|
-
elem
|
190
|
+
elem.xpath(ns(".//semx[@element = 'deprecates']")).each do |s|
|
191
|
+
s.next = " <span class='DeprecatedLabel'>#{@i18n.deprecated}</span>"
|
192
|
+
end
|
185
193
|
end
|
186
194
|
|
187
195
|
def admits(elem)
|
188
|
-
elem
|
196
|
+
elem.xpath(ns(".//semx[@element = 'admitted']")).each do |s|
|
197
|
+
s.next = " <span class='AdmittedLabel'>#{@i18n.admitted}</span>"
|
198
|
+
end
|
189
199
|
end
|
190
200
|
|
201
|
+
#def designation_boldface(desgn); end
|
202
|
+
|
191
203
|
def source_label(elem)
|
192
204
|
labelled_ancestor(elem) and return
|
193
205
|
#lbl = "<span class='fmt-element-name'>#{lower2cap @i18n.sourcecode}</span>"
|
@@ -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="
|
1280
|
+
<ref name="ISO8601Date"/>
|
1281
1281
|
</element>
|
1282
1282
|
</define>
|
1283
1283
|
<define name="validityEnds">
|
1284
1284
|
<element name="validityEnds">
|
1285
|
-
<ref name="
|
1285
|
+
<ref name="ISO8601Date"/>
|
1286
1286
|
</element>
|
1287
1287
|
</define>
|
1288
1288
|
<define name="validityRevision">
|
1289
1289
|
<element name="revision">
|
1290
|
-
<ref name="
|
1290
|
+
<ref name="ISO8601Date"/>
|
1291
1291
|
</element>
|
1292
1292
|
</define>
|
1293
1293
|
<define name="TypedTitleString">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|