metanorma-csa 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 806a51a66247c3398f78d9f516525b0f2aaa3fe83d669038d0dccc9c7daceea0
4
- data.tar.gz: 1aa70cd654e05d3acccfb0879309815e5c1b4bc48a2086d07b6be3d52aff1704
3
+ metadata.gz: 6247cd1d99f827e1c07acead231cb5905a8a76f65825512adc363bac46887548
4
+ data.tar.gz: 7ca46a311abb4ef7130aa384ecf103a31f1977a6634616010c2ce7f37f073c7b
5
5
  SHA512:
6
- metadata.gz: f6b1e0ca4b2895aea8c96f514edd8cfcba2270ea96be1d84e3357df6f941bbb1d3e72a8b3f9c85846296272385570e1817cf8af8c98c67c44bf4c9563b6ae801
7
- data.tar.gz: 4724482cd93a0e9b4f615e824156bec5569469c458c0fcedb274a6dce49bc927f5e8eebcfd321e7fe271734b5dd331916d5d580ebf478a14e9db022987b338a2
6
+ metadata.gz: 1082cbdd5f25f87d13704d726d9f8968f495cd04700e05f0ce7dda8c7c63161e4e8b85020834086c73ca65867a50bf15700d81edb41adb425c4750f99420d421
7
+ data.tar.gz: 2a25ce7752ed8739b68550acb37783144e6310fe8bc07f28c1fa0fdf027de1fa328ef84ad4565b674cec6ab7e8176e5b4570f1235269b9823019086464e7c46c
@@ -625,14 +625,14 @@
625
625
  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 -->
626
626
 
627
627
  <!--
628
- <misc-container>
628
+ <metanorma-extension>
629
629
  <presentation-metadata>
630
630
  <papersize>letter</papersize>
631
631
  </presentation-metadata>
632
- </misc-container>
632
+ </metanorma-extension>
633
633
  -->
634
634
 
635
- <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
635
+ <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'])))"/>
636
636
  <xsl:variable name="papersize_width_">
637
637
  <xsl:choose>
638
638
  <xsl:when test="$papersize = 'letter'">215.9</xsl:when>
@@ -749,7 +749,7 @@
749
749
  <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
750
750
 
751
751
  <xsl:variable name="title-list-tables">
752
- <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
752
+ <xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
753
753
  <xsl:value-of select="$toc_table_title"/>
754
754
  <xsl:if test="normalize-space($toc_table_title) = ''">
755
755
  <xsl:call-template name="getTitle">
@@ -759,7 +759,7 @@
759
759
  </xsl:variable>
760
760
 
761
761
  <xsl:variable name="title-list-figures">
762
- <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
762
+ <xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
763
763
  <xsl:value-of select="$toc_figure_title"/>
764
764
  <xsl:if test="normalize-space($toc_figure_title) = ''">
765
765
  <xsl:call-template name="getTitle">
@@ -769,7 +769,7 @@
769
769
  </xsl:variable>
770
770
 
771
771
  <xsl:variable name="title-list-recommendations">
772
- <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
772
+ <xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
773
773
  <xsl:value-of select="$toc_requirement_title"/>
774
774
  <xsl:if test="normalize-space($toc_requirement_title) = ''">
775
775
  <xsl:call-template name="getTitle">
@@ -841,7 +841,7 @@
841
841
  <xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
842
842
 
843
843
  <xsl:variable name="additional_fonts_">
844
- <xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'misc-container']/*[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']">
844
+ <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']">
845
845
  <xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
846
846
  </xsl:for-each>
847
847
  </xsl:variable>
@@ -1903,10 +1903,10 @@
1903
1903
 
1904
1904
  <xsl:template name="processTablesFigures_Contents">
1905
1905
  <xsl:param name="always"/>
1906
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1906
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1907
1907
  <xsl:call-template name="processTables_Contents"/>
1908
1908
  </xsl:if>
1909
- <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1909
+ <xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
1910
1910
  <xsl:call-template name="processFigures_Contents"/>
1911
1911
  </xsl:if>
1912
1912
  </xsl:template>
@@ -2241,6 +2241,8 @@
2241
2241
  <xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
2242
2242
  </xsl:if>
2243
2243
 
2244
+ <xsl:call-template name="setBordersTableArray"/>
2245
+
2244
2246
  </xsl:element>
2245
2247
  </xsl:variable>
2246
2248
 
@@ -2385,6 +2387,10 @@
2385
2387
 
2386
2388
  </xsl:template>
2387
2389
 
2390
+ <xsl:template name="setBordersTableArray">
2391
+
2392
+ </xsl:template>
2393
+
2388
2394
  <xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
2389
2395
  <xsl:param name="continued"/>
2390
2396
  <xsl:if test="normalize-space() != ''">
@@ -2859,6 +2865,8 @@
2859
2865
  <fo:table-row>
2860
2866
  <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
2861
2867
 
2868
+ <xsl:call-template name="setBordersTableArray"/>
2869
+
2862
2870
  <!-- fn will be processed inside 'note' processing -->
2863
2871
 
2864
2872
  <!-- for BSI (not PAS) display Notes before footnotes -->
@@ -2980,6 +2988,8 @@
2980
2988
  <xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
2981
2989
  <fo:table-row xsl:use-attribute-sets="table-header-row-style">
2982
2990
 
2991
+ <xsl:call-template name="setBordersTableArray"/>
2992
+
2983
2993
  <xsl:call-template name="setTableRowAttributes"/>
2984
2994
 
2985
2995
  <xsl:apply-templates/>
@@ -3003,6 +3013,8 @@
3003
3013
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
3004
3014
  </xsl:if>
3005
3015
 
3016
+ <xsl:call-template name="setBordersTableArray"/>
3017
+
3006
3018
  <xsl:call-template name="setTableRowAttributes"/>
3007
3019
  <xsl:apply-templates/>
3008
3020
  </fo:table-row>
@@ -3022,6 +3034,8 @@
3022
3034
  <xsl:with-param name="default">center</xsl:with-param>
3023
3035
  </xsl:call-template>
3024
3036
 
3037
+ <xsl:call-template name="setBordersTableArray"/>
3038
+
3025
3039
  <xsl:if test="$lang = 'ar'">
3026
3040
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3027
3041
  </xsl:if>
@@ -3074,6 +3088,8 @@
3074
3088
 
3075
3089
  <!-- bsi -->
3076
3090
 
3091
+ <xsl:call-template name="setBordersTableArray"/>
3092
+
3077
3093
  <xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
3078
3094
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
3079
3095
  </xsl:if>
@@ -6710,7 +6726,7 @@
6710
6726
  <!-- sourcecode -->
6711
6727
  <!-- =============== -->
6712
6728
 
6713
- <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'misc-container']/*[local-name() = 'source-highlighter-css']"/>
6729
+ <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
6714
6730
  <xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
6715
6731
  <xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
6716
6732
 
@@ -8748,8 +8764,8 @@
8748
8764
 
8749
8765
  <xsl:variable name="toc_level">
8750
8766
  <!-- https://www.metanorma.org/author/ref/document-attributes/ -->
8751
- <xsl:variable name="htmltoclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[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:-->
8752
- <xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'misc-container']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
8767
+ <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:-->
8768
+ <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 -->
8753
8769
  <xsl:choose>
8754
8770
  <xsl:when test="$htmltoclevels != ''"><xsl:value-of select="number($htmltoclevels)"/></xsl:when> <!-- if there is value in xml -->
8755
8771
  <xsl:when test="$toclevels != ''"><xsl:value-of select="number($toclevels)"/></xsl:when> <!-- if there is value in xml -->
@@ -9737,6 +9753,7 @@
9737
9753
  <xsl:choose>
9738
9754
  <xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
9739
9755
  <xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
9756
+ <xsl:when test="$align = 'justified'">justify</xsl:when>
9740
9757
  <xsl:when test="$align != '' and not($align = 'indent')"><xsl:value-of select="$align"/></xsl:when>
9741
9758
  <xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
9742
9759
  <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>complements</value>
1319
+ <value>hasComplement</value>
1320
1320
  <value>complementOf</value>
1321
1321
  <value>obsoletes</value>
1322
1322
  <value>obsoletedBy</value>
@@ -1580,7 +1580,7 @@
1580
1580
  </element>
1581
1581
  </define>
1582
1582
  <define name="misccontainer">
1583
- <element name="misc-container">
1583
+ <element name="metanorma-extension">
1584
1584
  <oneOrMore>
1585
1585
  <ref name="AnyElement"/>
1586
1586
  </oneOrMore>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csa
3
- VERSION = "2.2.2".freeze
3
+ VERSION = "2.2.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.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: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic