metanorma-plateau 1.0.3 → 1.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c609b148685814ec8ad7f93c55bc329fbe5f7d5c2929d1d48ab68b56334056b6
|
4
|
+
data.tar.gz: 764ccd4a3889970984b66b10c5d71e6fd265be250b602d3821931d2383279a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5bb6d2afa21d161e260137d51c345ac1c08c20183eaf503fe78fd41ecd32df57d954220209a0e9b00fb04c32418259ee21aabd409e1eb62ce0f3c82537213c6
|
7
|
+
data.tar.gz: 26bfc22f00eb089892edc7162e3b07d6001abee22328a3dcf9791c0fddd083c286ad942121e80c0adc800d3b7308bf24da5797ef4cc09f567f1a3ebfe7ee931b
|
@@ -1347,13 +1347,13 @@
|
|
1347
1347
|
</xsl:when>
|
1348
1348
|
<xsl:otherwise>
|
1349
1349
|
<xsl:choose>
|
1350
|
-
<xsl:when test="parent::*[local-name() = 'ul'] and ancestor::*[local-name() = 'sections'] and $list_item_label = '・' and not(ancestor::*[local-name() = 'table'])">
|
1350
|
+
<!-- <xsl:when test="parent::*[local-name() = 'ul'] and ancestor::*[local-name() = 'sections'] and $list_item_label = '・' and not(ancestor::*[local-name() = 'table'])">
|
1351
1351
|
<fo:inline>
|
1352
1352
|
<fo:instream-foreign-object content-width="2.5mm" fox:alt-text="ul list label">
|
1353
1353
|
<xsl:copy-of select="$list_label_black_circle"/>
|
1354
1354
|
</fo:instream-foreign-object>
|
1355
1355
|
</fo:inline>
|
1356
|
-
</xsl:when>
|
1356
|
+
</xsl:when> -->
|
1357
1357
|
<xsl:when test="parent::*[local-name() = 'ul'] and $list_item_label = '→'">
|
1358
1358
|
<fo:inline>
|
1359
1359
|
<fo:instream-foreign-object content-width="2.5mm" fox:alt-text="ul list label">
|
@@ -4323,8 +4323,14 @@
|
|
4323
4323
|
</xsl:choose>
|
4324
4324
|
</xsl:variable>
|
4325
4325
|
|
4326
|
+
<xsl:call-template name="setNamedDestination"/>
|
4327
|
+
|
4326
4328
|
<fo:block-container xsl:use-attribute-sets="table-container-style" role="SKIP">
|
4327
4329
|
|
4330
|
+
<xsl:for-each select="*[local-name() = 'name']">
|
4331
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
4332
|
+
</xsl:for-each>
|
4333
|
+
|
4328
4334
|
<xsl:call-template name="refine_table-container-style">
|
4329
4335
|
<xsl:with-param name="margin-side" select="$margin-side"/>
|
4330
4336
|
</xsl:call-template>
|
@@ -4530,6 +4536,7 @@
|
|
4530
4536
|
<!-- table/name-->
|
4531
4537
|
<xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
4532
4538
|
<xsl:param name="continued"/>
|
4539
|
+
<xsl:param name="cols-count"/>
|
4533
4540
|
<xsl:if test="normalize-space() != ''">
|
4534
4541
|
|
4535
4542
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
@@ -4551,9 +4558,30 @@
|
|
4551
4558
|
|
4552
4559
|
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
4553
4560
|
<xsl:if test="$continued = 'true'">
|
4554
|
-
|
4555
|
-
|
4556
|
-
|
4561
|
+
|
4562
|
+
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
4563
|
+
|
4564
|
+
<xsl:choose>
|
4565
|
+
<xsl:when test="string(number($cols-count)) != 'NaN'">
|
4566
|
+
<fo:table width="100%" table-layout="fixed" role="SKIP">
|
4567
|
+
<fo:table-body role="SKIP">
|
4568
|
+
<fo:table-row>
|
4569
|
+
<fo:table-cell role="TH" number-columns-spanned="{$cols-count}">
|
4570
|
+
<fo:block text-align="right" role="SKIP">
|
4571
|
+
<xsl:apply-templates select="../*[local-name() = 'note'][@type = 'units']/node()"/>
|
4572
|
+
</fo:block>
|
4573
|
+
</fo:table-cell>
|
4574
|
+
</fo:table-row>
|
4575
|
+
</fo:table-body>
|
4576
|
+
</fo:table>
|
4577
|
+
</xsl:when>
|
4578
|
+
<xsl:otherwise>
|
4579
|
+
<fo:block text-align="right">
|
4580
|
+
<xsl:apply-templates select="../*[local-name() = 'note'][@type = 'units']/node()"/>
|
4581
|
+
</fo:block>
|
4582
|
+
</xsl:otherwise>
|
4583
|
+
</xsl:choose>
|
4584
|
+
|
4557
4585
|
</xsl:if>
|
4558
4586
|
<!-- </xsl:if> -->
|
4559
4587
|
|
@@ -4946,6 +4974,7 @@
|
|
4946
4974
|
|
4947
4975
|
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
4948
4976
|
<xsl:with-param name="continued">true</xsl:with-param>
|
4977
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
4949
4978
|
</xsl:apply-templates>
|
4950
4979
|
|
4951
4980
|
<xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
|
@@ -5325,8 +5354,8 @@
|
|
5325
5354
|
<xsl:for-each select="xalan:nodeset($styles__)/item">
|
5326
5355
|
<xsl:variable name="key" select="normalize-space(substring-before(., ':'))"/>
|
5327
5356
|
<xsl:variable name="value" select="normalize-space(substring-after(translate(.,$quot,''), ':'))"/>
|
5328
|
-
<xsl:if test="$key = 'color' or
|
5329
|
-
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
5357
|
+
<xsl:if test="$key = 'color' or $key = 'background-color' or $key = 'border' or $key = 'border-top' or $key = 'border-right' or $key = 'border-left' or $key = 'border-bottom' or $key = 'border-style' or $key = 'border-width' or $key = 'border-color' or $key = 'border-top-style' or $key = 'border-top-width' or $key = 'border-top-color' or $key = 'border-right-style' or $key = 'border-right-width' or $key = 'border-right-color' or $key = 'border-left-style' or $key = 'border-left-width' or $key = 'border-left-color' or $key = 'border-bottom-style' or $key = 'border-bottom-width' or $key = 'border-bottom-color'">
|
5358
|
+
<style name="{$key}"><xsl:value-of select="java:replaceAll(java:java.lang.String.new($value), 'currentColor', 'inherit')"/></style>
|
5330
5359
|
</xsl:if>
|
5331
5360
|
</xsl:for-each>
|
5332
5361
|
</xsl:variable>
|
@@ -5390,6 +5419,7 @@
|
|
5390
5419
|
<!-- table/note, table/example, table/tfoot//note, table/tfoot//example -->
|
5391
5420
|
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example'] | *[local-name()='table']/*[local-name()='tfoot']//*[local-name()='note' or local-name() = 'example']" priority="2">
|
5392
5421
|
|
5422
|
+
<xsl:call-template name="setNamedDestination"/>
|
5393
5423
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
5394
5424
|
<xsl:copy-of select="@id"/>
|
5395
5425
|
|
@@ -6020,6 +6050,10 @@
|
|
6020
6050
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
6021
6051
|
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
6022
6052
|
|
6053
|
+
<xsl:if test="@key = 'true' and ancestor::*[local-name() = 'figure']">
|
6054
|
+
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
|
6055
|
+
</xsl:if>
|
6056
|
+
|
6023
6057
|
<xsl:call-template name="setBlockSpanAll"/>
|
6024
6058
|
|
6025
6059
|
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
@@ -6347,7 +6381,7 @@
|
|
6347
6381
|
|
6348
6382
|
<!-- caption for figure key and another caption, https://github.com/metanorma/isodoc/issues/607 -->
|
6349
6383
|
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'p'][@keep-with-next = 'true' and *[local-name() = 'strong']]" priority="3">
|
6350
|
-
<fo:block text-align="left" margin-bottom="12pt" keep-with-next="always">
|
6384
|
+
<fo:block text-align="left" margin-bottom="12pt" keep-with-next="always" keep-with-previous="always">
|
6351
6385
|
<xsl:call-template name="refine_figure_key_style"/>
|
6352
6386
|
<xsl:apply-templates/>
|
6353
6387
|
</fo:block>
|
@@ -6604,6 +6638,7 @@
|
|
6604
6638
|
|
6605
6639
|
<xsl:call-template name="refine_dt-cell-style"/>
|
6606
6640
|
|
6641
|
+
<xsl:call-template name="setNamedDestination"/>
|
6607
6642
|
<fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
|
6608
6643
|
|
6609
6644
|
<xsl:choose>
|
@@ -7038,7 +7073,7 @@
|
|
7038
7073
|
<!-- ================= -->
|
7039
7074
|
|
7040
7075
|
<!-- highlight text -->
|
7041
|
-
<xsl:template match="*[local-name()='hi']">
|
7076
|
+
<xsl:template match="*[local-name()='hi'] | *[local-name() = 'span'][@class = 'fmt-hi']" priority="3">
|
7042
7077
|
<fo:inline background-color="yellow">
|
7043
7078
|
<xsl:apply-templates/>
|
7044
7079
|
</fo:inline>
|
@@ -8633,6 +8668,7 @@
|
|
8633
8668
|
<!-- Appendix processing -->
|
8634
8669
|
<!-- ======================== -->
|
8635
8670
|
<xsl:template match="*[local-name()='appendix']">
|
8671
|
+
<xsl:call-template name="setNamedDestination"/>
|
8636
8672
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
8637
8673
|
<xsl:apply-templates select="*[local-name()='title']"/>
|
8638
8674
|
</fo:block>
|
@@ -8643,13 +8679,14 @@
|
|
8643
8679
|
<xsl:variable name="level">
|
8644
8680
|
<xsl:call-template name="getLevel"/>
|
8645
8681
|
</xsl:variable>
|
8646
|
-
<fo:inline role="H{$level}"><xsl:apply-templates/></fo:inline>
|
8682
|
+
<fo:inline role="H{$level}"><xsl:call-template name="setIDforNamedDestination"/><xsl:apply-templates/></fo:inline>
|
8647
8683
|
</xsl:template>
|
8648
8684
|
<!-- ======================== -->
|
8649
8685
|
<!-- END Appendix processing -->
|
8650
8686
|
<!-- ======================== -->
|
8651
8687
|
|
8652
8688
|
<xsl:template match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
|
8689
|
+
<xsl:call-template name="setNamedDestination"/>
|
8653
8690
|
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
8654
8691
|
<xsl:apply-templates select="*[local-name()='name']"/>
|
8655
8692
|
</fo:block>
|
@@ -8679,6 +8716,7 @@
|
|
8679
8716
|
<xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
|
8680
8717
|
<xsl:param name="callout"/>
|
8681
8718
|
<fo:inline id="{@id}">
|
8719
|
+
<xsl:call-template name="setNamedDestination"/>
|
8682
8720
|
<!-- for first p in annotation, put <x> -->
|
8683
8721
|
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
|
8684
8722
|
<xsl:apply-templates/>
|
@@ -8725,6 +8763,7 @@
|
|
8725
8763
|
|
8726
8764
|
</xsl:if>
|
8727
8765
|
<fo:block-container margin-left="0mm" role="SKIP">
|
8766
|
+
<xsl:call-template name="setNamedDestination"/>
|
8728
8767
|
<fo:block id="{@id}">
|
8729
8768
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/> <!-- formula's number will be process in 'stem' template -->
|
8730
8769
|
</fo:block>
|
@@ -8770,8 +8809,13 @@
|
|
8770
8809
|
</fo:block>
|
8771
8810
|
</fo:table-cell>
|
8772
8811
|
<fo:table-cell display-align="center">
|
8812
|
+
|
8773
8813
|
<fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
|
8774
8814
|
|
8815
|
+
<xsl:for-each select="../*[local-name() = 'name']">
|
8816
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
8817
|
+
</xsl:for-each>
|
8818
|
+
|
8775
8819
|
<xsl:call-template name="refine_formula-stem-number-style"/>
|
8776
8820
|
|
8777
8821
|
<xsl:apply-templates select="../*[local-name() = 'name']"/>
|
@@ -8806,6 +8850,8 @@
|
|
8806
8850
|
|
8807
8851
|
<xsl:template match="*[local-name() = 'note']" name="note">
|
8808
8852
|
|
8853
|
+
<xsl:call-template name="setNamedDestination"/>
|
8854
|
+
|
8809
8855
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
8810
8856
|
|
8811
8857
|
<xsl:call-template name="setBlockSpanAll"/>
|
@@ -8874,6 +8920,7 @@
|
|
8874
8920
|
</xsl:template>
|
8875
8921
|
|
8876
8922
|
<xsl:template match="*[local-name() = 'termnote']">
|
8923
|
+
<xsl:call-template name="setNamedDestination"/>
|
8877
8924
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
8878
8925
|
|
8879
8926
|
<xsl:call-template name="setBlockSpanAll"/>
|
@@ -8980,12 +9027,14 @@
|
|
8980
9027
|
|
8981
9028
|
<xsl:template match="*[local-name() = 'terms']">
|
8982
9029
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
9030
|
+
<xsl:call-template name="setNamedDestination"/>
|
8983
9031
|
<fo:block id="{@id}">
|
8984
9032
|
<xsl:apply-templates/>
|
8985
9033
|
</fo:block>
|
8986
9034
|
</xsl:template>
|
8987
9035
|
|
8988
9036
|
<xsl:template match="*[local-name() = 'term']">
|
9037
|
+
<xsl:call-template name="setNamedDestination"/>
|
8989
9038
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
8990
9039
|
|
8991
9040
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
@@ -9017,6 +9066,7 @@
|
|
9017
9066
|
<xsl:template match="*[local-name() = 'figure']" name="figure">
|
9018
9067
|
<xsl:variable name="isAdded" select="@added"/>
|
9019
9068
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
9069
|
+
<xsl:call-template name="setNamedDestination"/>
|
9020
9070
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="figure-block-style">
|
9021
9071
|
<xsl:call-template name="refine_figure-block-style"/>
|
9022
9072
|
|
@@ -9033,6 +9083,11 @@
|
|
9033
9083
|
</xsl:variable>
|
9034
9084
|
|
9035
9085
|
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
9086
|
+
|
9087
|
+
<xsl:for-each select="*[local-name() = 'name']"> <!-- set context -->
|
9088
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
9089
|
+
</xsl:for-each>
|
9090
|
+
|
9036
9091
|
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note' and @type = 'units')]"/>
|
9037
9092
|
</fo:block>
|
9038
9093
|
|
@@ -9065,6 +9120,7 @@
|
|
9065
9120
|
</xsl:template>
|
9066
9121
|
|
9067
9122
|
<xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
9123
|
+
<xsl:call-template name="setNamedDestination"/>
|
9068
9124
|
<fo:block id="{@id}">
|
9069
9125
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
9070
9126
|
</fo:block>
|
@@ -9078,6 +9134,7 @@
|
|
9078
9134
|
</xsl:template>
|
9079
9135
|
|
9080
9136
|
<!-- SOURCE: ... -->
|
9137
|
+
<!-- figure/source -->
|
9081
9138
|
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
|
9082
9139
|
|
9083
9140
|
<xsl:call-template name="termsource"/>
|
@@ -10310,6 +10367,7 @@
|
|
10310
10367
|
<xsl:template match="title" mode="bookmark"/>
|
10311
10368
|
<xsl:template match="text()" mode="bookmark"/>
|
10312
10369
|
|
10370
|
+
<!-- figure/name -->
|
10313
10371
|
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']">
|
10314
10372
|
<xsl:if test="normalize-space() != ''">
|
10315
10373
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
@@ -11024,6 +11082,7 @@
|
|
11024
11082
|
<!-- permission -->
|
11025
11083
|
<!-- ========== -->
|
11026
11084
|
<xsl:template match="*[local-name() = 'permission']">
|
11085
|
+
<xsl:call-template name="setNamedDestination"/>
|
11027
11086
|
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
11028
11087
|
<xsl:apply-templates select="*[local-name()='name']"/>
|
11029
11088
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
@@ -11032,10 +11091,12 @@
|
|
11032
11091
|
|
11033
11092
|
<xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']">
|
11034
11093
|
<xsl:if test="normalize-space() != ''">
|
11035
|
-
<fo:block xsl:use-attribute-sets="permission-name-style">
|
11036
|
-
<xsl:apply-templates/>
|
11037
11094
|
|
11038
|
-
|
11095
|
+
<fo:block xsl:use-attribute-sets="permission-name-style">
|
11096
|
+
<xsl:apply-templates/>
|
11097
|
+
|
11098
|
+
</fo:block>
|
11099
|
+
|
11039
11100
|
</xsl:if>
|
11040
11101
|
</xsl:template>
|
11041
11102
|
|
@@ -11051,6 +11112,7 @@
|
|
11051
11112
|
<!-- requirement -->
|
11052
11113
|
<!-- ========== -->
|
11053
11114
|
<xsl:template match="*[local-name() = 'requirement']">
|
11115
|
+
<xsl:call-template name="setNamedDestination"/>
|
11054
11116
|
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
11055
11117
|
<xsl:apply-templates select="*[local-name()='name']"/>
|
11056
11118
|
<xsl:apply-templates select="*[local-name()='label']"/>
|
@@ -11062,11 +11124,13 @@
|
|
11062
11124
|
|
11063
11125
|
<xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']">
|
11064
11126
|
<xsl:if test="normalize-space() != ''">
|
11065
|
-
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
11066
11127
|
|
11067
|
-
|
11128
|
+
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
11129
|
+
|
11130
|
+
<xsl:apply-templates/>
|
11131
|
+
|
11132
|
+
</fo:block>
|
11068
11133
|
|
11069
|
-
</fo:block>
|
11070
11134
|
</xsl:if>
|
11071
11135
|
</xsl:template>
|
11072
11136
|
|
@@ -11095,6 +11159,7 @@
|
|
11095
11159
|
<!-- recommendation -->
|
11096
11160
|
<!-- ========== -->
|
11097
11161
|
<xsl:template match="*[local-name() = 'recommendation']">
|
11162
|
+
<xsl:call-template name="setNamedDestination"/>
|
11098
11163
|
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
11099
11164
|
<xsl:apply-templates select="*[local-name()='name']"/>
|
11100
11165
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
|
@@ -11103,10 +11168,12 @@
|
|
11103
11168
|
|
11104
11169
|
<xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']">
|
11105
11170
|
<xsl:if test="normalize-space() != ''">
|
11106
|
-
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
11107
|
-
<xsl:apply-templates/>
|
11108
11171
|
|
11109
|
-
|
11172
|
+
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
11173
|
+
<xsl:apply-templates/>
|
11174
|
+
|
11175
|
+
</fo:block>
|
11176
|
+
|
11110
11177
|
</xsl:if>
|
11111
11178
|
</xsl:template>
|
11112
11179
|
|
@@ -11185,6 +11252,7 @@
|
|
11185
11252
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
11186
11253
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
11187
11254
|
</xsl:if>
|
11255
|
+
<xsl:call-template name="setNamedDestination"/>
|
11188
11256
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
11189
11257
|
<fo:table id="{@id}" table-layout="fixed" width="100%"> <!-- border="1pt solid black" -->
|
11190
11258
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
@@ -11294,6 +11362,7 @@
|
|
11294
11362
|
<!-- termexample -->
|
11295
11363
|
<!-- ====== -->
|
11296
11364
|
<xsl:template match="*[local-name() = 'termexample']">
|
11365
|
+
<xsl:call-template name="setNamedDestination"/>
|
11297
11366
|
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
|
11298
11367
|
<xsl:call-template name="refine_termexample-style"/>
|
11299
11368
|
<xsl:call-template name="setBlockSpanAll"/>
|
@@ -11348,6 +11417,7 @@
|
|
11348
11417
|
-->
|
11349
11418
|
<xsl:template match="*[local-name() = 'example']" name="example">
|
11350
11419
|
|
11420
|
+
<xsl:call-template name="setNamedDestination"/>
|
11351
11421
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
11352
11422
|
|
11353
11423
|
<xsl:call-template name="setBlockSpanAll"/>
|
@@ -11859,8 +11929,13 @@
|
|
11859
11929
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
11860
11930
|
|
11861
11931
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'preferred'])"> <!-- if first preffered in term, then display term's name -->
|
11932
|
+
|
11862
11933
|
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
11863
11934
|
|
11935
|
+
<xsl:for-each select="ancestor::*[local-name() = 'term'][1]/*[local-name() = 'name']"><!-- change context -->
|
11936
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
11937
|
+
</xsl:for-each>
|
11938
|
+
|
11864
11939
|
<xsl:apply-templates select="ancestor::*[local-name() = 'term'][1]/*[local-name() = 'name']"/>
|
11865
11940
|
</fo:block>
|
11866
11941
|
</xsl:if>
|
@@ -11980,6 +12055,7 @@
|
|
11980
12055
|
<!-- main sections -->
|
11981
12056
|
<xsl:template match="/*/*[local-name() = 'sections']/*" name="sections_node" priority="2">
|
11982
12057
|
|
12058
|
+
<xsl:call-template name="setNamedDestination"/>
|
11983
12059
|
<fo:block>
|
11984
12060
|
<xsl:call-template name="setId"/>
|
11985
12061
|
|
@@ -12020,6 +12096,7 @@
|
|
12020
12096
|
|
12021
12097
|
<fo:block break-after="page"/>
|
12022
12098
|
|
12099
|
+
<xsl:call-template name="setNamedDestination"/>
|
12023
12100
|
<fo:block>
|
12024
12101
|
<xsl:call-template name="setId"/>
|
12025
12102
|
<xsl:call-template name="addReviewHelper"/>
|
@@ -12048,6 +12125,7 @@
|
|
12048
12125
|
</xsl:template>
|
12049
12126
|
|
12050
12127
|
<xsl:template match="*[local-name() = 'clause'][normalize-space() != '' or *[local-name() = 'figure'] or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
12128
|
+
<xsl:call-template name="setNamedDestination"/>
|
12051
12129
|
<fo:block>
|
12052
12130
|
<xsl:if test="parent::*[local-name() = 'copyright-statement']">
|
12053
12131
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
@@ -12070,6 +12148,7 @@
|
|
12070
12148
|
</xsl:template> <!-- refine_clause_style -->
|
12071
12149
|
|
12072
12150
|
<xsl:template match="*[local-name() = 'definitions']">
|
12151
|
+
<xsl:call-template name="setNamedDestination"/>
|
12073
12152
|
<fo:block id="{@id}">
|
12074
12153
|
<xsl:apply-templates/>
|
12075
12154
|
</fo:block>
|
@@ -12085,6 +12164,8 @@
|
|
12085
12164
|
<xsl:otherwise>
|
12086
12165
|
|
12087
12166
|
<fo:block break-after="page"/>
|
12167
|
+
<xsl:call-template name="setNamedDestination"/>
|
12168
|
+
|
12088
12169
|
<fo:block id="{@id}">
|
12089
12170
|
|
12090
12171
|
<xsl:call-template name="setBlockSpanAll"/>
|
@@ -12156,6 +12237,7 @@
|
|
12156
12237
|
<!-- following-sibling::node()[1][local-name() = 'bookmark'][@id = $source] and
|
12157
12238
|
following-sibling::node()[2][local-name() = 'fmt-review-end'][@source = $source] -->
|
12158
12239
|
<!-- <fo:block id="{$source}" font-size="1pt" role="SKIP"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{$source}" fox:alt-text="Annot___{$source}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block> -->
|
12240
|
+
<xsl:call-template name="setNamedDestination"/>
|
12159
12241
|
<fo:block id="{@id}" font-size="1pt" role="SKIP" keep-with-next="always" line-height="0.1"><xsl:value-of select="$hair_space"/><fo:basic-link internal-destination="{@id}" fox:alt-text="Annot___{@id}" role="Annot"><xsl:value-of select="$hair_space"/></fo:basic-link></fo:block>
|
12160
12242
|
<!-- </xsl:if> -->
|
12161
12243
|
</xsl:if>
|
@@ -12881,6 +12963,7 @@
|
|
12881
12963
|
<!-- Normative references -->
|
12882
12964
|
<xsl:template match="*[local-name() = 'references'][@normative='true']" priority="2">
|
12883
12965
|
|
12966
|
+
<xsl:call-template name="setNamedDestination"/>
|
12884
12967
|
<fo:block id="{@id}">
|
12885
12968
|
<xsl:apply-templates/>
|
12886
12969
|
|
@@ -12901,6 +12984,7 @@
|
|
12901
12984
|
</xsl:if>
|
12902
12985
|
</xsl:if> -->
|
12903
12986
|
|
12987
|
+
<xsl:call-template name="setNamedDestination"/>
|
12904
12988
|
<fo:block id="{@id}"/>
|
12905
12989
|
|
12906
12990
|
<xsl:apply-templates select="*[local-name() = 'title'][@columns = 1]"/>
|
@@ -12920,6 +13004,7 @@
|
|
12920
13004
|
<xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
|
12921
13005
|
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
12922
13006
|
|
13007
|
+
<xsl:call-template name="setNamedDestination"/>
|
12923
13008
|
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
|
12924
13009
|
|
12925
13010
|
<xsl:call-template name="processBibitem"/>
|
@@ -12933,6 +13018,7 @@
|
|
12933
13018
|
<!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
|
12934
13019
|
$namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
|
12935
13020
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
13021
|
+
<xsl:call-template name="setNamedDestination"/>
|
12936
13022
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
12937
13023
|
|
12938
13024
|
<fo:list-item>
|
@@ -12962,6 +13048,7 @@
|
|
12962
13048
|
<xsl:choose>
|
12963
13049
|
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
12964
13050
|
<xsl:otherwise>
|
13051
|
+
<xsl:call-template name="setNamedDestination"/>
|
12965
13052
|
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
12966
13053
|
|
12967
13054
|
<fo:list-item-label end-indent="label-end()">
|
@@ -13356,6 +13443,7 @@
|
|
13356
13443
|
<xsl:template match="*[local-name() = 'admonition']">
|
13357
13444
|
|
13358
13445
|
<!-- text in the box -->
|
13446
|
+
<xsl:call-template name="setNamedDestination"/>
|
13359
13447
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
13360
13448
|
|
13361
13449
|
<xsl:call-template name="setBlockSpanAll"/>
|
@@ -13611,7 +13699,7 @@
|
|
13611
13699
|
</xsl:template>
|
13612
13700
|
|
13613
13701
|
<!-- Example with 'class': <span class="stdpublisher">ISO</span> <span class="stddocNumber">10303</span>-<span class="stddocPartNumber">1</span>:<span class="stdyear">1994</span> -->
|
13614
|
-
<xsl:template match="*[local-name() = 'span'][@style or @class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear' or @class = 'horizontal' or @class = 'norotate' or @class = 'halffontsize']" mode="update_xml_step1" priority="2">
|
13702
|
+
<xsl:template match="*[local-name() = 'span'][@style or @class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear' or @class = 'fmt-hi' or @class = 'horizontal' or @class = 'norotate' or @class = 'halffontsize']" mode="update_xml_step1" priority="2">
|
13615
13703
|
<xsl:copy>
|
13616
13704
|
<xsl:copy-of select="@*"/>
|
13617
13705
|
<xsl:apply-templates mode="update_xml_step1"/>
|
@@ -13643,28 +13731,56 @@
|
|
13643
13731
|
<xsl:template match="*[local-name() = 'stem']" mode="update_xml_step1"/>
|
13644
13732
|
<xsl:template match="*[local-name() = 'stem']" mode="update_xml_pres"/>
|
13645
13733
|
|
13646
|
-
<xsl:template match="*[local-name() = 'fmt-stem']
|
13734
|
+
<xsl:template match="*[local-name() = 'fmt-stem']" mode="update_xml_step1">
|
13647
13735
|
<xsl:element name="stem" namespace="{$namespace_full}">
|
13648
13736
|
<xsl:copy-of select="@*"/>
|
13649
13737
|
<xsl:choose>
|
13650
13738
|
<xsl:when test="*[local-name() = 'semx'] and count(node()) = 1">
|
13651
|
-
<xsl:
|
13739
|
+
<xsl:choose>
|
13740
|
+
<xsl:when test="not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])">
|
13741
|
+
<xsl:copy-of select="*[local-name() = 'semx']/node()"/>
|
13742
|
+
</xsl:when>
|
13743
|
+
<xsl:otherwise>
|
13744
|
+
<xsl:apply-templates select="*[local-name() = 'semx']/node()" mode="update_xml_step1"/>
|
13745
|
+
</xsl:otherwise>
|
13746
|
+
</xsl:choose>
|
13652
13747
|
</xsl:when>
|
13653
13748
|
<xsl:otherwise>
|
13654
|
-
<xsl:
|
13749
|
+
<xsl:choose>
|
13750
|
+
<xsl:when test="not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])">
|
13751
|
+
<xsl:copy-of select="node()"/>
|
13752
|
+
</xsl:when>
|
13753
|
+
<xsl:otherwise>
|
13754
|
+
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
13755
|
+
</xsl:otherwise>
|
13756
|
+
</xsl:choose>
|
13655
13757
|
</xsl:otherwise>
|
13656
13758
|
</xsl:choose>
|
13657
13759
|
</xsl:element>
|
13658
13760
|
</xsl:template>
|
13659
|
-
<xsl:template match="*[local-name() = 'fmt-stem']
|
13761
|
+
<xsl:template match="*[local-name() = 'fmt-stem']" mode="update_xml_pres">
|
13660
13762
|
<xsl:element name="stem" namespace="{$namespace_full}">
|
13661
13763
|
<xsl:copy-of select="@*"/>
|
13662
13764
|
<xsl:choose>
|
13663
13765
|
<xsl:when test="*[local-name() = 'semx'] and count(node()) = 1">
|
13664
|
-
<xsl:
|
13766
|
+
<xsl:choose>
|
13767
|
+
<xsl:when test="not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])">
|
13768
|
+
<xsl:copy-of select="*[local-name() = 'semx']/node()"/>
|
13769
|
+
</xsl:when>
|
13770
|
+
<xsl:otherwise>
|
13771
|
+
<xsl:apply-templates select="*[local-name() = 'semx']/node()" mode="update_xml_pres"/>
|
13772
|
+
</xsl:otherwise>
|
13773
|
+
</xsl:choose>
|
13665
13774
|
</xsl:when>
|
13666
13775
|
<xsl:otherwise>
|
13667
|
-
<xsl:
|
13776
|
+
<xsl:choose>
|
13777
|
+
<xsl:when test="not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])">
|
13778
|
+
<xsl:copy-of select="node()"/>
|
13779
|
+
</xsl:when>
|
13780
|
+
<xsl:otherwise>
|
13781
|
+
<xsl:apply-templates select="node()" mode="update_xml_pres"/>
|
13782
|
+
</xsl:otherwise>
|
13783
|
+
</xsl:choose>
|
13668
13784
|
</xsl:otherwise>
|
13669
13785
|
</xsl:choose>
|
13670
13786
|
</xsl:element>
|
@@ -13893,16 +14009,24 @@
|
|
13893
14009
|
<xsl:template match="*[local-name() = 'fmt-title']" mode="update_xml_step1">
|
13894
14010
|
<xsl:element name="title" namespace="{$namespace_full}">
|
13895
14011
|
<xsl:copy-of select="@*"/>
|
14012
|
+
<xsl:call-template name="addNamedDestinationAttribute"/>
|
14013
|
+
|
13896
14014
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13897
14015
|
</xsl:element>
|
13898
14016
|
</xsl:template>
|
13899
14017
|
<xsl:template match="*[local-name() = 'fmt-title']" mode="update_xml_pres">
|
13900
14018
|
<xsl:element name="title" namespace="{$namespace_full}">
|
13901
14019
|
<xsl:copy-of select="@*"/>
|
14020
|
+
<xsl:call-template name="addNamedDestinationAttribute"/>
|
14021
|
+
|
13902
14022
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13903
14023
|
</xsl:element>
|
13904
14024
|
</xsl:template>
|
13905
14025
|
|
14026
|
+
<xsl:template name="addNamedDestinationAttribute">
|
14027
|
+
|
14028
|
+
</xsl:template>
|
14029
|
+
|
13906
14030
|
<xsl:template match="*[local-name() = 'fmt-name']"/>
|
13907
14031
|
<xsl:template match="*[local-name() = 'fmt-name']" mode="update_xml_step1">
|
13908
14032
|
<xsl:choose>
|
@@ -13912,6 +14036,8 @@
|
|
13912
14036
|
<xsl:otherwise>
|
13913
14037
|
<xsl:element name="name" namespace="{$namespace_full}">
|
13914
14038
|
<xsl:copy-of select="@*"/>
|
14039
|
+
<xsl:call-template name="addNamedDestinationAttribute"/>
|
14040
|
+
|
13915
14041
|
<xsl:apply-templates mode="update_xml_step1"/>
|
13916
14042
|
</xsl:element>
|
13917
14043
|
</xsl:otherwise>
|
@@ -13925,6 +14051,8 @@
|
|
13925
14051
|
<xsl:otherwise>
|
13926
14052
|
<xsl:element name="name" namespace="{$namespace_full}">
|
13927
14053
|
<xsl:copy-of select="@*"/>
|
14054
|
+
<xsl:call-template name="addNamedDestinationAttribute"/>
|
14055
|
+
|
13928
14056
|
<xsl:apply-templates mode="update_xml_pres"/>
|
13929
14057
|
</xsl:element>
|
13930
14058
|
</xsl:otherwise>
|
@@ -15494,6 +15622,24 @@
|
|
15494
15622
|
</xsl:attribute>
|
15495
15623
|
</xsl:template>
|
15496
15624
|
|
15625
|
+
<xsl:template name="setIDforNamedDestination">
|
15626
|
+
<xsl:if test="@named_dest">
|
15627
|
+
<xsl:attribute name="id"><xsl:value-of select="@named_dest"/></xsl:attribute>
|
15628
|
+
</xsl:if>
|
15629
|
+
</xsl:template>
|
15630
|
+
|
15631
|
+
<xsl:template name="setNamedDestination">
|
15632
|
+
<!-- skip GUID, e.g. _33eac3cb-9663-4291-ae26-1d4b6f4635fc -->
|
15633
|
+
<xsl:if test="@id and normalize-space(java:matches(java:java.lang.String.new(@id), '_[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}')) = 'false'">
|
15634
|
+
<fox:destination internal-destination="{@id}"/>
|
15635
|
+
</xsl:if>
|
15636
|
+
<xsl:for-each select=". | *[local-name() = 'title'] | *[local-name() = 'name']">
|
15637
|
+
<xsl:if test="@named_dest">
|
15638
|
+
<fox:destination internal-destination="{@named_dest}"/>
|
15639
|
+
</xsl:if>
|
15640
|
+
</xsl:for-each>
|
15641
|
+
</xsl:template>
|
15642
|
+
|
15497
15643
|
<xsl:template name="add-letter-spacing">
|
15498
15644
|
<xsl:param name="text"/>
|
15499
15645
|
<xsl:param name="letter-spacing" select="'0.15'"/>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.0.
|
3
|
+
<!-- VERSION v2.0.4 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -1328,6 +1328,7 @@ numbers</a:documentation>
|
|
1328
1328
|
<ref name="foreword"/>
|
1329
1329
|
<ref name="introduction"/>
|
1330
1330
|
<ref name="acknowledgements"/>
|
1331
|
+
<ref name="executivesummary"/>
|
1331
1332
|
</choice>
|
1332
1333
|
</oneOrMore>
|
1333
1334
|
</element>
|
@@ -1351,6 +1352,11 @@ numbers</a:documentation>
|
|
1351
1352
|
<ref name="Content-Section"/>
|
1352
1353
|
</element>
|
1353
1354
|
</define>
|
1355
|
+
<define name="executivesummary">
|
1356
|
+
<element name="executivesummary">
|
1357
|
+
<ref name="Content-Section"/>
|
1358
|
+
</element>
|
1359
|
+
</define>
|
1354
1360
|
<define name="indexsect">
|
1355
1361
|
<element name="indexsect">
|
1356
1362
|
<ref name="Content-Section"/>
|
@@ -1576,6 +1582,15 @@ used in document amendments</a:documentation>
|
|
1576
1582
|
<define name="annex">
|
1577
1583
|
<element name="annex">
|
1578
1584
|
<ref name="Annex-Section"/>
|
1585
|
+
<zeroOrMore>
|
1586
|
+
<ref name="annex-appendix"/>
|
1587
|
+
</zeroOrMore>
|
1588
|
+
</element>
|
1589
|
+
</define>
|
1590
|
+
<define name="annex-appendix">
|
1591
|
+
<a:documentation>Appendix, distinct subclause type for annexes (annex to annex, rather than subclause to annex)</a:documentation>
|
1592
|
+
<element name="appendix">
|
1593
|
+
<ref name="Clause-Section"/>
|
1579
1594
|
</element>
|
1580
1595
|
</define>
|
1581
1596
|
<define name="terms">
|
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: 1.0.
|
4
|
+
version: 1.0.5
|
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-04-
|
11
|
+
date: 2025-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-jis
|