metanorma-csa 1.9.0 → 1.9.1

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: 6ab95b34d8d091b8dd994c196c209dfe1030e3a63c62e549e586b14e0717c6e6
4
- data.tar.gz: a5b04910fbbd85318f6be5114699b0c3ab9463771cc54ef73dbed7e9fda52d1e
3
+ metadata.gz: 2398ecbb838d1f8f1722882f4abb7457c8d12cfda2b680d74e688995e92c19f3
4
+ data.tar.gz: 2c28d8bb4e4f357955cf257ecc05c2ee9d606c6e891a3108fbc7d6221c462382
5
5
  SHA512:
6
- metadata.gz: bfd43d873dc031082989c03b706dabd310c0df4fd38b7e74de03da1cd0fad5e0530776ec0f376cb5115ed4eb91b663a28eec1f52f43eee327b6bd97bea0867bd
7
- data.tar.gz: e2c261bafcdf39893bbeb0d1e3713563bc446a3736d3bd21464f99d0d1453ebbb782c27b968e16ff0b6f15156a35fc219d3e799f82554a9222336a07f27f2c48
6
+ metadata.gz: 6b2a266e0b8a95b547ede1f5a9ad12b429057a104caf84327999b6133c04d8042020cce97fc4214695b9a50cab3903f47af8a73e6b7524a9ab000acc69aec944
7
+ data.tar.gz: 23fe36463fbe7d12215359a15de93253701d0b026a50bf4b00d1b1559e2df6ba8be496d8cddc59229e4d670e60fccc2f92f71805f80e5f2a5f4312100a661b92
@@ -2063,7 +2063,12 @@
2063
2063
  <define name="verbaldefinition">
2064
2064
  <element name="verbaldefinition">
2065
2065
  <oneOrMore>
2066
- <ref name="paragraph"/>
2066
+ <choice>
2067
+ <ref name="paragraph"/>
2068
+ <ref name="dl"/>
2069
+ <ref name="ol"/>
2070
+ <ref name="ul"/>
2071
+ </choice>
2067
2072
  </oneOrMore>
2068
2073
  <zeroOrMore>
2069
2074
  <ref name="termsource"/>
@@ -2163,6 +2168,12 @@
2163
2168
  <value>modified</value>
2164
2169
  </choice>
2165
2170
  </attribute>
2171
+ <attribute name="type">
2172
+ <choice>
2173
+ <value>authoritative</value>
2174
+ <value>lineage</value>
2175
+ </choice>
2176
+ </attribute>
2166
2177
  <ref name="origin"/>
2167
2178
  <optional>
2168
2179
  <ref name="modification"/>
@@ -735,7 +735,7 @@
735
735
  </xsl:variable>
736
736
  <fo:block font-size="{$font-size}" role="H{$levelTerm}">
737
737
  <fo:block font-weight="bold" keep-with-next="always">
738
- <xsl:apply-templates select="ancestor::csa:term/csa:name" mode="presentation"/>
738
+ <xsl:apply-templates select="ancestor::csa:term[1]/csa:name" mode="presentation"/>
739
739
  </fo:block>
740
740
  <fo:block font-weight="bold" keep-with-next="always" line-height="1">
741
741
  <xsl:apply-templates/>
@@ -2874,6 +2874,7 @@
2874
2874
  <fo:table-cell>
2875
2875
 
2876
2876
  <fo:block margin-top="6pt">
2877
+ <xsl:copy-of select="@id"/>
2877
2878
 
2878
2879
 
2879
2880
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -3713,14 +3714,18 @@
3713
3714
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
3714
3715
  <fo:inline><xsl:apply-templates/></fo:inline>
3715
3716
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
3717
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
3716
3718
  <fo:block id="{@id}">
3717
3719
  <xsl:apply-templates/>
3718
3720
  </fo:block>
3719
3721
  </xsl:template><xsl:template match="*[local-name() = 'term']">
3722
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
3720
3723
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
3721
3724
 
3722
3725
 
3723
-
3726
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
3727
+
3728
+ </xsl:if>
3724
3729
  <xsl:apply-templates/>
3725
3730
  </fo:block>
3726
3731
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -4694,7 +4699,8 @@
4694
4699
  </fo:block>
4695
4700
  </fo:table-cell>
4696
4701
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
4697
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
4702
+ <fo:block font-size="11pt">
4703
+
4698
4704
  <xsl:apply-templates/>
4699
4705
  </fo:block>
4700
4706
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -4810,13 +4816,15 @@
4810
4816
  <!-- <xsl:apply-templates /> -->
4811
4817
  <xsl:copy-of select="$termsource_text"/>
4812
4818
  </xsl:when>
4813
- <xsl:otherwise>
4819
+ <xsl:otherwise>
4820
+
4814
4821
 
4815
4822
  <xsl:text>[</xsl:text>
4816
4823
 
4817
4824
  <!-- <xsl:apply-templates /> -->
4818
4825
  <xsl:copy-of select="$termsource_text"/>
4819
4826
 
4827
+
4820
4828
  <xsl:text>]</xsl:text>
4821
4829
 
4822
4830
  </xsl:otherwise>
@@ -4900,12 +4908,20 @@
4900
4908
  </xsl:template><xsl:template match="*[local-name() = 'author']">
4901
4909
  <xsl:text>— </xsl:text>
4902
4910
  <xsl:apply-templates/>
4903
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
4911
+ </xsl:template><xsl:variable name="bibitem_hidden_">
4912
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
4913
+ <xsl:copy-of select="."/>
4914
+ </xsl:for-each>
4915
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
4916
+ <xsl:copy-of select="."/>
4917
+ </xsl:for-each>
4918
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
4904
4919
 
4905
4920
  <xsl:variable name="bibitemid">
4906
4921
  <xsl:choose>
4907
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
4908
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
4922
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
4923
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
4924
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
4909
4925
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
4910
4926
  </xsl:choose>
4911
4927
  </xsl:variable>
@@ -4989,10 +5005,10 @@
4989
5005
  </xsl:choose>
4990
5006
  </xsl:variable>
4991
5007
 
4992
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
5008
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
4993
5009
 
4994
5010
  <xsl:choose>
4995
- <xsl:when test="$language = 'zh'">
5011
+ <xsl:when test="$lang = 'zh'">
4996
5012
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
4997
5013
  </xsl:when>
4998
5014
  <xsl:when test="../../@inline-header = 'true'">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csa
3
- VERSION = "1.9.0".freeze
3
+ VERSION = "1.9.1".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: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic