metanorma-cc 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/cc/cc.standard.xsl +29 -12
- data/lib/metanorma/cc/biblio.rng +1 -1
- data/lib/metanorma/cc/isodoc.rng +1 -1
- data/lib/metanorma/cc/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: dba742dc424fbc707539ec873531152d3e70db8acf1132610db996f4f918b896
|
4
|
+
data.tar.gz: e179bbb086f0c5f6f6c09960498ac14ed0039cc4115acf6243f92378e22d716e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 161cfc6a1e6edc85896aabbc226a400926c022b343c68d234b1c8c2f9dcbc1df516d07c484e5c573e4443850677bdca0ed4e4e5ea330e1f132e3e59c3287c321
|
7
|
+
data.tar.gz: cae03fa76b69f2fb6e613e4f93660ae41542932abb1051a975c05244312abc32dedb2e843aff593d69d02fa1ecb9c76f1fafa37cb7df44cb3d100e379f903e2d
|
@@ -620,14 +620,14 @@
|
|
620
620
|
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 -->
|
621
621
|
|
622
622
|
<!--
|
623
|
-
<
|
623
|
+
<metanorma-extension>
|
624
624
|
<presentation-metadata>
|
625
625
|
<papersize>letter</papersize>
|
626
626
|
</presentation-metadata>
|
627
|
-
</
|
627
|
+
</metanorma-extension>
|
628
628
|
-->
|
629
629
|
|
630
|
-
<xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = '
|
630
|
+
<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'])))"/>
|
631
631
|
<xsl:variable name="papersize_width_">
|
632
632
|
<xsl:choose>
|
633
633
|
<xsl:when test="$papersize = 'letter'">215.9</xsl:when>
|
@@ -744,7 +744,7 @@
|
|
744
744
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
745
745
|
|
746
746
|
<xsl:variable name="title-list-tables">
|
747
|
-
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
747
|
+
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
748
748
|
<xsl:value-of select="$toc_table_title"/>
|
749
749
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
750
750
|
<xsl:call-template name="getTitle">
|
@@ -754,7 +754,7 @@
|
|
754
754
|
</xsl:variable>
|
755
755
|
|
756
756
|
<xsl:variable name="title-list-figures">
|
757
|
-
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
757
|
+
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
758
758
|
<xsl:value-of select="$toc_figure_title"/>
|
759
759
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
760
760
|
<xsl:call-template name="getTitle">
|
@@ -764,7 +764,7 @@
|
|
764
764
|
</xsl:variable>
|
765
765
|
|
766
766
|
<xsl:variable name="title-list-recommendations">
|
767
|
-
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
767
|
+
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
768
768
|
<xsl:value-of select="$toc_requirement_title"/>
|
769
769
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
770
770
|
<xsl:call-template name="getTitle">
|
@@ -836,7 +836,7 @@
|
|
836
836
|
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
837
837
|
|
838
838
|
<xsl:variable name="additional_fonts_">
|
839
|
-
<xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = '
|
839
|
+
<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']">
|
840
840
|
<xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
|
841
841
|
</xsl:for-each>
|
842
842
|
</xsl:variable>
|
@@ -1875,10 +1875,10 @@
|
|
1875
1875
|
|
1876
1876
|
<xsl:template name="processTablesFigures_Contents">
|
1877
1877
|
<xsl:param name="always"/>
|
1878
|
-
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = '
|
1878
|
+
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
|
1879
1879
|
<xsl:call-template name="processTables_Contents"/>
|
1880
1880
|
</xsl:if>
|
1881
|
-
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = '
|
1881
|
+
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
|
1882
1882
|
<xsl:call-template name="processFigures_Contents"/>
|
1883
1883
|
</xsl:if>
|
1884
1884
|
</xsl:template>
|
@@ -2215,6 +2215,8 @@
|
|
2215
2215
|
<xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
2216
2216
|
</xsl:if>
|
2217
2217
|
|
2218
|
+
<xsl:call-template name="setBordersTableArray"/>
|
2219
|
+
|
2218
2220
|
</xsl:element>
|
2219
2221
|
</xsl:variable>
|
2220
2222
|
|
@@ -2359,6 +2361,10 @@
|
|
2359
2361
|
|
2360
2362
|
</xsl:template>
|
2361
2363
|
|
2364
|
+
<xsl:template name="setBordersTableArray">
|
2365
|
+
|
2366
|
+
</xsl:template>
|
2367
|
+
|
2362
2368
|
<xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
2363
2369
|
<xsl:param name="continued"/>
|
2364
2370
|
<xsl:if test="normalize-space() != ''">
|
@@ -2833,6 +2839,8 @@
|
|
2833
2839
|
<fo:table-row>
|
2834
2840
|
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
2835
2841
|
|
2842
|
+
<xsl:call-template name="setBordersTableArray"/>
|
2843
|
+
|
2836
2844
|
<!-- fn will be processed inside 'note' processing -->
|
2837
2845
|
|
2838
2846
|
<!-- for BSI (not PAS) display Notes before footnotes -->
|
@@ -2954,6 +2962,8 @@
|
|
2954
2962
|
<xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
|
2955
2963
|
<fo:table-row xsl:use-attribute-sets="table-header-row-style">
|
2956
2964
|
|
2965
|
+
<xsl:call-template name="setBordersTableArray"/>
|
2966
|
+
|
2957
2967
|
<xsl:call-template name="setTableRowAttributes"/>
|
2958
2968
|
|
2959
2969
|
<xsl:apply-templates/>
|
@@ -2977,6 +2987,8 @@
|
|
2977
2987
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
2978
2988
|
</xsl:if>
|
2979
2989
|
|
2990
|
+
<xsl:call-template name="setBordersTableArray"/>
|
2991
|
+
|
2980
2992
|
<xsl:call-template name="setTableRowAttributes"/>
|
2981
2993
|
<xsl:apply-templates/>
|
2982
2994
|
</fo:table-row>
|
@@ -2996,6 +3008,8 @@
|
|
2996
3008
|
<xsl:with-param name="default">center</xsl:with-param>
|
2997
3009
|
</xsl:call-template>
|
2998
3010
|
|
3011
|
+
<xsl:call-template name="setBordersTableArray"/>
|
3012
|
+
|
2999
3013
|
<xsl:if test="$lang = 'ar'">
|
3000
3014
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3001
3015
|
</xsl:if>
|
@@ -3048,6 +3062,8 @@
|
|
3048
3062
|
|
3049
3063
|
<!-- bsi -->
|
3050
3064
|
|
3065
|
+
<xsl:call-template name="setBordersTableArray"/>
|
3066
|
+
|
3051
3067
|
<xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
|
3052
3068
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3053
3069
|
</xsl:if>
|
@@ -6681,7 +6697,7 @@
|
|
6681
6697
|
<!-- sourcecode -->
|
6682
6698
|
<!-- =============== -->
|
6683
6699
|
|
6684
|
-
<xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = '
|
6700
|
+
<xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
|
6685
6701
|
<xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
|
6686
6702
|
<xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
|
6687
6703
|
|
@@ -8747,8 +8763,8 @@
|
|
8747
8763
|
|
8748
8764
|
<xsl:variable name="toc_level">
|
8749
8765
|
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
|
8750
|
-
<xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = '
|
8751
|
-
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = '
|
8766
|
+
<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:-->
|
8767
|
+
<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 -->
|
8752
8768
|
<xsl:choose>
|
8753
8769
|
<xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
|
8754
8770
|
<xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
|
@@ -9745,6 +9761,7 @@
|
|
9745
9761
|
<xsl:choose>
|
9746
9762
|
<xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
|
9747
9763
|
<xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
|
9764
|
+
<xsl:when test="$align = 'justified'">justify</xsl:when>
|
9748
9765
|
<xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
|
9749
9766
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
9750
9767
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
data/lib/metanorma/cc/biblio.rng
CHANGED
@@ -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>
|
data/lib/metanorma/cc/isodoc.rng
CHANGED
data/lib/metanorma/cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cc
|
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
|