metanorma-ribose 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ribose/ribose.standard.xsl +29 -12
- data/lib/metanorma/ribose/biblio.rng +1 -1
- data/lib/metanorma/ribose/isodoc.rng +1 -1
- data/lib/metanorma/ribose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19e0702fb65c658a415082116786e4c083e4ea3f0d43348d9435b9359cc51a04
|
4
|
+
data.tar.gz: 981338bdab7169f29bd851c64461519621e45bd7dac927303899cac8f87b22d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3f83c67623e49c698489b21b7f4fd34273b30b7ea1ef5434303a7e7600c27576332638d4dfc6e0017c91778d736d3db9b823a1c34477fa08f165ca91072532d
|
7
|
+
data.tar.gz: 5339fee39a8708b19367e7a9e0b811adaeebae50f6eac854970235f6450182925ee09e1150638f5a48e3759593613f682c64f103706567cfc9a3bd7babcd6163
|
@@ -1259,14 +1259,14 @@
|
|
1259
1259
|
BUT DON'T put any another conditions together with $namespace = '...' (such conditions will be ignored). For another conditions, please use nested xsl:if or xsl:choose -->
|
1260
1260
|
|
1261
1261
|
<!--
|
1262
|
-
<
|
1262
|
+
<metanorma-extension>
|
1263
1263
|
<presentation-metadata>
|
1264
1264
|
<papersize>letter</papersize>
|
1265
1265
|
</presentation-metadata>
|
1266
|
-
</
|
1266
|
+
</metanorma-extension>
|
1267
1267
|
-->
|
1268
1268
|
|
1269
|
-
<xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = '
|
1269
|
+
<xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
|
1270
1270
|
<xsl:variable name="papersize_width_">
|
1271
1271
|
<xsl:choose>
|
1272
1272
|
<xsl:when test="$papersize = 'letter'">215.9</xsl:when>
|
@@ -1381,7 +1381,7 @@
|
|
1381
1381
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
1382
1382
|
|
1383
1383
|
<xsl:variable name="title-list-tables">
|
1384
|
-
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
1384
|
+
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
1385
1385
|
<xsl:value-of select="$toc_table_title"/>
|
1386
1386
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
1387
1387
|
<xsl:call-template name="getTitle">
|
@@ -1391,7 +1391,7 @@
|
|
1391
1391
|
</xsl:variable>
|
1392
1392
|
|
1393
1393
|
<xsl:variable name="title-list-figures">
|
1394
|
-
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
1394
|
+
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
1395
1395
|
<xsl:value-of select="$toc_figure_title"/>
|
1396
1396
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
1397
1397
|
<xsl:call-template name="getTitle">
|
@@ -1401,7 +1401,7 @@
|
|
1401
1401
|
</xsl:variable>
|
1402
1402
|
|
1403
1403
|
<xsl:variable name="title-list-recommendations">
|
1404
|
-
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
1404
|
+
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
1405
1405
|
<xsl:value-of select="$toc_requirement_title"/>
|
1406
1406
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
1407
1407
|
<xsl:call-template name="getTitle">
|
@@ -1475,7 +1475,7 @@
|
|
1475
1475
|
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
1476
1476
|
|
1477
1477
|
<xsl:variable name="additional_fonts_">
|
1478
|
-
<xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = '
|
1478
|
+
<xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
|
1479
1479
|
<xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
|
1480
1480
|
</xsl:for-each>
|
1481
1481
|
</xsl:variable>
|
@@ -2617,10 +2617,10 @@
|
|
2617
2617
|
|
2618
2618
|
<xsl:template name="processTablesFigures_Contents">
|
2619
2619
|
<xsl:param name="always"/>
|
2620
|
-
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = '
|
2620
|
+
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
|
2621
2621
|
<xsl:call-template name="processTables_Contents"/>
|
2622
2622
|
</xsl:if>
|
2623
|
-
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = '
|
2623
|
+
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
|
2624
2624
|
<xsl:call-template name="processFigures_Contents"/>
|
2625
2625
|
</xsl:if>
|
2626
2626
|
</xsl:template>
|
@@ -2952,6 +2952,8 @@
|
|
2952
2952
|
|
2953
2953
|
<xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
|
2954
2954
|
|
2955
|
+
<xsl:call-template name="setBordersTableArray"/>
|
2956
|
+
|
2955
2957
|
</xsl:element>
|
2956
2958
|
</xsl:variable>
|
2957
2959
|
|
@@ -3096,6 +3098,10 @@
|
|
3096
3098
|
|
3097
3099
|
</xsl:template>
|
3098
3100
|
|
3101
|
+
<xsl:template name="setBordersTableArray">
|
3102
|
+
|
3103
|
+
</xsl:template>
|
3104
|
+
|
3099
3105
|
<xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
3100
3106
|
<xsl:param name="continued"/>
|
3101
3107
|
<xsl:if test="normalize-space() != ''">
|
@@ -3570,6 +3576,8 @@
|
|
3570
3576
|
<fo:table-row>
|
3571
3577
|
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
3572
3578
|
|
3579
|
+
<xsl:call-template name="setBordersTableArray"/>
|
3580
|
+
|
3573
3581
|
<!-- fn will be processed inside 'note' processing -->
|
3574
3582
|
|
3575
3583
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
@@ -3691,6 +3699,8 @@
|
|
3691
3699
|
<xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
|
3692
3700
|
<fo:table-row xsl:use-attribute-sets="table-header-row-style">
|
3693
3701
|
|
3702
|
+
<xsl:call-template name="setBordersTableArray"/>
|
3703
|
+
|
3694
3704
|
<xsl:call-template name="setTableRowAttributes"/>
|
3695
3705
|
|
3696
3706
|
<xsl:apply-templates/>
|
@@ -3714,6 +3724,8 @@
|
|
3714
3724
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3715
3725
|
</xsl:if>
|
3716
3726
|
|
3727
|
+
<xsl:call-template name="setBordersTableArray"/>
|
3728
|
+
|
3717
3729
|
<xsl:variable name="number"><xsl:number/></xsl:variable>
|
3718
3730
|
<xsl:if test="$number mod 2 = 0">
|
3719
3731
|
<xsl:attribute name="background-color">rgb(254, 247, 228)</xsl:attribute>
|
@@ -3738,6 +3750,8 @@
|
|
3738
3750
|
<xsl:with-param name="default">center</xsl:with-param>
|
3739
3751
|
</xsl:call-template>
|
3740
3752
|
|
3753
|
+
<xsl:call-template name="setBordersTableArray"/>
|
3754
|
+
|
3741
3755
|
<xsl:if test="$lang = 'ar'">
|
3742
3756
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3743
3757
|
</xsl:if>
|
@@ -3790,6 +3804,8 @@
|
|
3790
3804
|
|
3791
3805
|
<!-- bsi -->
|
3792
3806
|
|
3807
|
+
<xsl:call-template name="setBordersTableArray"/>
|
3808
|
+
|
3793
3809
|
<xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
|
3794
3810
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3795
3811
|
</xsl:if>
|
@@ -7449,7 +7465,7 @@
|
|
7449
7465
|
<!-- sourcecode -->
|
7450
7466
|
<!-- =============== -->
|
7451
7467
|
|
7452
|
-
<xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
7468
|
+
<xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
|
7453
7469
|
<xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
|
7454
7470
|
<xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
|
7455
7471
|
|
@@ -9524,8 +9540,8 @@
|
|
9524
9540
|
|
9525
9541
|
<xsl:variable name="toc_level">
|
9526
9542
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
9527
|
-
<xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = '
|
9528
|
-
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = '
|
9543
|
+
<xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'HTML TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :htmltoclevels Number of table of contents levels to render in HTML/PDF output; used to override :toclevels:-->
|
9544
|
+
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
|
9529
9545
|
<xsl:choose>
|
9530
9546
|
<xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
9531
9547
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
@@ -10517,6 +10533,7 @@
|
|
10517
10533
|
<xsl:choose>
|
10518
10534
|
<xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
|
10519
10535
|
<xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
|
10536
|
+
<xsl:when test="$align = 'justified'">justify</xsl:when>
|
10520
10537
|
<xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
|
10521
10538
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
10522
10539
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
@@ -1316,7 +1316,7 @@
|
|
1316
1316
|
<value>commentaryOf</value>
|
1317
1317
|
<value>hasCommentary</value>
|
1318
1318
|
<value>related</value>
|
1319
|
-
<value>
|
1319
|
+
<value>hasComplement</value>
|
1320
1320
|
<value>complementOf</value>
|
1321
1321
|
<value>obsoletes</value>
|
1322
1322
|
<value>obsoletedBy</value>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|