metanorma-cc 1.8.0 → 1.8.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: a3f0001744462f6a12891ef4f0b288ff8b2a9a04b4c74c843e24cc4508fc0a45
4
- data.tar.gz: 831870abd5cce8c14e1a4ed2d14561e188b1ec59311795bb7849b9badbc01e0f
3
+ metadata.gz: e6773b2389fcbb144d384002256bd7ba303aab7baa25f20ac37b0d40af9ae451
4
+ data.tar.gz: ad6d676e3086792134308b0e0abeb32f4a21b65141a923ddb8fe4303d8d822b8
5
5
  SHA512:
6
- metadata.gz: 928dfb9b3cb2ce5b99ffc4c31cce6456695542470acc26ef51ffddcde4ae493f362f5c5a6c2eacf97e5226cf393f3dcf781b866f3ec885397d40ef5223de6fda
7
- data.tar.gz: 3c2ad0815ec8ee15565256f32b8f55b22c8ecbc95d4df5a16d1874afab0c822f2621620ac00468cc6a47fbe7a15d29bab47ad5efba9097f8424bfd469e53484b
6
+ metadata.gz: 3f0bc68cc852e0ed53dc3a97009a8d4ebd73d0deadc1950bb34c77e2587d11c4840e1f56308c597ed821d2cae87c8b8a681c94902fc811c6dd62662c7f69e58b
7
+ data.tar.gz: 8fc55cd529d92cdaf66d93f37979b618df59d3a1e2883480661660795d4f1676756dfee017efc2977c39693cfdd6ff7d44bf0a48748b038bcce7b0a7bf8a9606
@@ -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"/>
@@ -649,7 +649,7 @@
649
649
  </xsl:variable>
650
650
  <fo:block font-size="{$font-size}" line-height="1.1" role="H{$levelTerm}">
651
651
  <fo:block font-weight="bold" keep-with-next="always">
652
- <xsl:apply-templates select="ancestor::csd:term/csd:name" mode="presentation"/>
652
+ <xsl:apply-templates select="ancestor::csd:term[1]/csd:name" mode="presentation"/>
653
653
  </fo:block>
654
654
  <fo:block font-weight="bold" keep-with-next="always">
655
655
  <xsl:apply-templates/>
@@ -2799,6 +2799,7 @@
2799
2799
  <fo:table-cell>
2800
2800
 
2801
2801
  <fo:block margin-top="6pt">
2802
+ <xsl:copy-of select="@id"/>
2802
2803
 
2803
2804
 
2804
2805
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -3636,14 +3637,18 @@
3636
3637
  </xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
3637
3638
  <fo:inline><xsl:apply-templates/></fo:inline>
3638
3639
  </xsl:template><xsl:template match="*[local-name() = 'terms']">
3640
+ <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
3639
3641
  <fo:block id="{@id}">
3640
3642
  <xsl:apply-templates/>
3641
3643
  </fo:block>
3642
3644
  </xsl:template><xsl:template match="*[local-name() = 'term']">
3645
+ <!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
3643
3646
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
3644
3647
 
3645
3648
 
3646
-
3649
+ <xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
3650
+
3651
+ </xsl:if>
3647
3652
  <xsl:apply-templates/>
3648
3653
  </fo:block>
3649
3654
  </xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
@@ -4617,7 +4622,8 @@
4617
4622
  </fo:block>
4618
4623
  </fo:table-cell>
4619
4624
  </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
4620
- <fo:block font-size="11pt" color="rgb(237, 193, 35)"> <!-- font-weight="bold" margin-bottom="4pt" text-align="center" -->
4625
+ <fo:block font-size="11pt">
4626
+
4621
4627
  <xsl:apply-templates/>
4622
4628
  </fo:block>
4623
4629
  </xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
@@ -4733,13 +4739,15 @@
4733
4739
  <!-- <xsl:apply-templates /> -->
4734
4740
  <xsl:copy-of select="$termsource_text"/>
4735
4741
  </xsl:when>
4736
- <xsl:otherwise>
4742
+ <xsl:otherwise>
4743
+
4737
4744
 
4738
4745
  <xsl:text>[</xsl:text>
4739
4746
 
4740
4747
  <!-- <xsl:apply-templates /> -->
4741
4748
  <xsl:copy-of select="$termsource_text"/>
4742
4749
 
4750
+
4743
4751
  <xsl:text>]</xsl:text>
4744
4752
 
4745
4753
  </xsl:otherwise>
@@ -4823,12 +4831,20 @@
4823
4831
  </xsl:template><xsl:template match="*[local-name() = 'author']">
4824
4832
  <xsl:text>— </xsl:text>
4825
4833
  <xsl:apply-templates/>
4826
- </xsl:template><xsl:template match="*[local-name() = 'eref']">
4834
+ </xsl:template><xsl:variable name="bibitem_hidden_">
4835
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
4836
+ <xsl:copy-of select="."/>
4837
+ </xsl:for-each>
4838
+ <xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
4839
+ <xsl:copy-of select="."/>
4840
+ </xsl:for-each>
4841
+ </xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
4827
4842
 
4828
4843
  <xsl:variable name="bibitemid">
4829
4844
  <xsl:choose>
4830
- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
4831
- <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
4845
+ <!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
4846
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
4847
+ <xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
4832
4848
  <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
4833
4849
  </xsl:choose>
4834
4850
  </xsl:variable>
@@ -4921,10 +4937,10 @@
4921
4937
  </xsl:choose>
4922
4938
  </xsl:variable>
4923
4939
 
4924
- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
4940
+ <!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
4925
4941
 
4926
4942
  <xsl:choose>
4927
- <xsl:when test="$language = 'zh'">
4943
+ <xsl:when test="$lang = 'zh'">
4928
4944
  <fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
4929
4945
  </xsl:when>
4930
4946
  <xsl:when test="../../@inline-header = 'true'">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "1.8.0".freeze
3
+ VERSION = "1.8.1".freeze
4
4
  end
5
5
  end
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: 1.8.0
4
+ version: 1.8.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