metanorma-plateau 1.2.6 → 1.2.7
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: 1bfcef686181e7d2d42c733342cbcbbf00fd88bda76e0a2be811b0243fb068b7
|
|
4
|
+
data.tar.gz: 88ae44c810f54247a11d97ffc4626936dadc347955af3596dcbfe7ea68ceb44d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b78ae131f199030b7e9108aaddbe718eea7bb0a0ea6db60972139150d46335939439293a12ce600dc47c96b2495c36e31684a61fdceac265fc3761ca317b579b
|
|
7
|
+
data.tar.gz: 86928c28c962d93740639d1c1c66b32f4673359f4b153fb99345f6ca549b8f94f3609b14fadd85236b91aa3e40123e7332cdd0df68aba3e49e6037379cb98340
|
|
@@ -853,6 +853,9 @@
|
|
|
853
853
|
<xsl:variable name="title">
|
|
854
854
|
<xsl:call-template name="getName"/>
|
|
855
855
|
</xsl:variable>
|
|
856
|
+
<xsl:variable name="variant_title">
|
|
857
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
858
|
+
</xsl:variable>
|
|
856
859
|
|
|
857
860
|
<xsl:variable name="root">
|
|
858
861
|
<xsl:if test="ancestor-or-self::mn:preface">preface</xsl:if>
|
|
@@ -864,9 +867,18 @@
|
|
|
864
867
|
<xsl:attribute name="level">1</xsl:attribute>
|
|
865
868
|
</xsl:if>
|
|
866
869
|
<mnx:title>
|
|
867
|
-
<xsl:
|
|
868
|
-
<xsl:
|
|
869
|
-
|
|
870
|
+
<xsl:choose>
|
|
871
|
+
<xsl:when test="normalize-space($variant_title) != ''">
|
|
872
|
+
<xsl:apply-templates select="xalan:nodeset($variant_title)" mode="contents_item">
|
|
873
|
+
<xsl:with-param name="mode">contents</xsl:with-param>
|
|
874
|
+
</xsl:apply-templates>
|
|
875
|
+
</xsl:when>
|
|
876
|
+
<xsl:otherwise>
|
|
877
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item">
|
|
878
|
+
<xsl:with-param name="mode">contents</xsl:with-param>
|
|
879
|
+
</xsl:apply-templates>
|
|
880
|
+
</xsl:otherwise>
|
|
881
|
+
</xsl:choose>
|
|
870
882
|
</mnx:title>
|
|
871
883
|
<xsl:if test="$type != 'index'">
|
|
872
884
|
<xsl:apply-templates mode="contents"/>
|
|
@@ -1294,7 +1306,7 @@
|
|
|
1294
1306
|
<!-- remove semantic xml -->
|
|
1295
1307
|
<xsl:template match="mn:metanorma-extension/mn:metanorma/mn:source" mode="update_xml_pres"/>
|
|
1296
1308
|
<!-- remove image/emf -->
|
|
1297
|
-
<xsl:template match="mn:image
|
|
1309
|
+
<xsl:template match="mn:image//mn:emf" mode="update_xml_pres"/>
|
|
1298
1310
|
<xsl:template match="mn:preprocess-xslt" mode="update_xml_pres"/>
|
|
1299
1311
|
<xsl:template match="mn:stem" mode="update_xml_pres"/>
|
|
1300
1312
|
|
|
@@ -2525,7 +2537,24 @@
|
|
|
2525
2537
|
<xsl:template match="mn:metanorma-extension/*[local-name() = 'UnitsML']" mode="update_xml_step1"/>
|
|
2526
2538
|
|
|
2527
2539
|
<!-- remove image/emf -->
|
|
2528
|
-
<xsl:template match="mn:image
|
|
2540
|
+
<xsl:template match="mn:image//mn:emf" mode="update_xml_step1"/>
|
|
2541
|
+
|
|
2542
|
+
<!-- https://github.com/metanorma/metanorma/issues/540 -->
|
|
2543
|
+
<xsl:template match="mn:image[mn:altsource]" priority="3" mode="update_xml_step1">
|
|
2544
|
+
<xsl:copy>
|
|
2545
|
+
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
|
2546
|
+
<xsl:choose>
|
|
2547
|
+
<xsl:when test="mn:altsource[contains(@tag, 'pdf')]">
|
|
2548
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/@*" mode="update_xml_step1"/>
|
|
2549
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'pdf')]/node()" mode="update_xml_step1"/>
|
|
2550
|
+
</xsl:when>
|
|
2551
|
+
<xsl:otherwise>
|
|
2552
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/@*" mode="update_xml_step1"/>
|
|
2553
|
+
<xsl:apply-templates select="mn:altsource[contains(@tag, 'default')]/node()" mode="update_xml_step1"/>
|
|
2554
|
+
</xsl:otherwise>
|
|
2555
|
+
</xsl:choose>
|
|
2556
|
+
</xsl:copy>
|
|
2557
|
+
</xsl:template>
|
|
2529
2558
|
|
|
2530
2559
|
<!-- remove preprocess-xslt -->
|
|
2531
2560
|
<xsl:template match="mn:preprocess-xslt" mode="update_xml_step1"/>
|
|
@@ -2753,6 +2782,15 @@
|
|
|
2753
2782
|
</xsl:choose>
|
|
2754
2783
|
</xsl:template>
|
|
2755
2784
|
|
|
2785
|
+
<!-- https://github.com/metanorma/metanorma-iso/issues/1535 -->
|
|
2786
|
+
<xsl:template match="mn:ol[mn:fmt-ol]" mode="update_xml_step1">
|
|
2787
|
+
<xsl:apply-templates select="mn:fmt-ol" mode="update_xml_step1"/>
|
|
2788
|
+
</xsl:template>
|
|
2789
|
+
|
|
2790
|
+
<xsl:template match="mn:ul[mn:fmt-ul]" mode="update_xml_step1">
|
|
2791
|
+
<xsl:apply-templates select="mn:fmt-ul" mode="update_xml_step1"/>
|
|
2792
|
+
</xsl:template>
|
|
2793
|
+
|
|
2756
2794
|
<!-- li/fmt-name -->
|
|
2757
2795
|
<xsl:template match="mn:li/mn:fmt-name" priority="2" mode="update_xml_step1">
|
|
2758
2796
|
<xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
|
|
@@ -6099,6 +6137,8 @@
|
|
|
6099
6137
|
<xsl:param name="margin-side"/>
|
|
6100
6138
|
|
|
6101
6139
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6140
|
+
|
|
6141
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6102
6142
|
</xsl:template> <!-- refine_table-style -->
|
|
6103
6143
|
|
|
6104
6144
|
<xsl:attribute-set name="table-number-style">
|
|
@@ -6139,6 +6179,8 @@
|
|
|
6139
6179
|
<xsl:template name="refine_table-header-row-style">
|
|
6140
6180
|
|
|
6141
6181
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6182
|
+
|
|
6183
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6142
6184
|
</xsl:template> <!-- refine_table-header-row-style -->
|
|
6143
6185
|
|
|
6144
6186
|
<xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
|
|
@@ -6147,6 +6189,8 @@
|
|
|
6147
6189
|
</xsl:attribute-set>
|
|
6148
6190
|
|
|
6149
6191
|
<xsl:template name="refine_table-footer-row-style">
|
|
6192
|
+
|
|
6193
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6150
6194
|
</xsl:template> <!-- refine_table-footer-row-style -->
|
|
6151
6195
|
|
|
6152
6196
|
<xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
|
|
@@ -6156,6 +6200,8 @@
|
|
|
6156
6200
|
<xsl:template name="refine_table-body-row-style">
|
|
6157
6201
|
|
|
6158
6202
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6203
|
+
|
|
6204
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6159
6205
|
</xsl:template> <!-- refine_table-body-row-style -->
|
|
6160
6206
|
|
|
6161
6207
|
<xsl:attribute-set name="table-header-cell-style">
|
|
@@ -6178,6 +6224,16 @@
|
|
|
6178
6224
|
</xsl:if>
|
|
6179
6225
|
|
|
6180
6226
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
6227
|
+
|
|
6228
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6229
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6230
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6231
|
+
<xsl:if test="following-sibling::*">
|
|
6232
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6233
|
+
</xsl:if>
|
|
6234
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6235
|
+
</xsl:if>
|
|
6236
|
+
|
|
6181
6237
|
</xsl:template> <!-- refine_table-header-cell-style -->
|
|
6182
6238
|
|
|
6183
6239
|
<xsl:attribute-set name="table-cell-style">
|
|
@@ -6196,6 +6252,15 @@
|
|
|
6196
6252
|
|
|
6197
6253
|
<xsl:call-template name="setBordersTableArray"/>
|
|
6198
6254
|
|
|
6255
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6256
|
+
<xsl:attribute name="display-align">before</xsl:attribute>
|
|
6257
|
+
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
6258
|
+
<xsl:if test="following-sibling::*">
|
|
6259
|
+
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
6260
|
+
</xsl:if>
|
|
6261
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6262
|
+
</xsl:if>
|
|
6263
|
+
|
|
6199
6264
|
</xsl:template> <!-- refine_table-cell-style -->
|
|
6200
6265
|
|
|
6201
6266
|
<xsl:attribute-set name="table-footer-cell-style">
|
|
@@ -6208,6 +6273,8 @@
|
|
|
6208
6273
|
</xsl:attribute-set> <!-- table-footer-cell-style -->
|
|
6209
6274
|
|
|
6210
6275
|
<xsl:template name="refine_table-footer-cell-style">
|
|
6276
|
+
|
|
6277
|
+
<xsl:call-template name="setNoBordersForTableList"/>
|
|
6211
6278
|
</xsl:template> <!-- refine_table-footer-cell-style -->
|
|
6212
6279
|
|
|
6213
6280
|
<xsl:attribute-set name="table-note-style">
|
|
@@ -6256,6 +6323,16 @@
|
|
|
6256
6323
|
<xsl:template name="refine_table-fn-body-style">
|
|
6257
6324
|
</xsl:template>
|
|
6258
6325
|
|
|
6326
|
+
<xsl:template name="setNoBordersForTableList">
|
|
6327
|
+
<xsl:if test="ancestor::mn:fmt-ol or ancestor::mn:fmt-ul">
|
|
6328
|
+
<xsl:attribute name="border">none</xsl:attribute>
|
|
6329
|
+
<xsl:attribute name="border-top">none</xsl:attribute>
|
|
6330
|
+
<xsl:attribute name="border-bottom">none</xsl:attribute>
|
|
6331
|
+
<xsl:attribute name="border-left">none</xsl:attribute>
|
|
6332
|
+
<xsl:attribute name="border-right">none</xsl:attribute>
|
|
6333
|
+
</xsl:if>
|
|
6334
|
+
</xsl:template>
|
|
6335
|
+
|
|
6259
6336
|
<!-- ========================== -->
|
|
6260
6337
|
<!-- END Table styles -->
|
|
6261
6338
|
<!-- ========================== -->
|
|
@@ -11870,6 +11947,10 @@
|
|
|
11870
11947
|
</fo:list-item>
|
|
11871
11948
|
</xsl:template>
|
|
11872
11949
|
|
|
11950
|
+
<xsl:template match="mn:fmt-ol | mn:fmt-ul">
|
|
11951
|
+
<xsl:apply-templates/>
|
|
11952
|
+
</xsl:template>
|
|
11953
|
+
|
|
11873
11954
|
<!-- ===================================== -->
|
|
11874
11955
|
<!-- END Lists processing -->
|
|
11875
11956
|
<!-- ===================================== -->
|
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.2.
|
|
4
|
+
version: 1.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-jis
|