metanorma-taste 1.1.3.pre.alpha.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 970981d5547cb853262ebe258f8d11c6fd52e8deb593dcbd5953efef0e69b2bd
4
- data.tar.gz: b237fe70bc854ffd52fcc05bf920c9a518fe8b4e62d9f5617f30f24c82e79304
3
+ metadata.gz: a276fd02ec6b8d7ef348c48ff5a3cdbe89f2a768f635d89d35d5d198fcb56ed7
4
+ data.tar.gz: 7c2c22381234ac45b72599b0db632efe707e1d12768f69773c685df404ddd9d2
5
5
  SHA512:
6
- metadata.gz: 99c950b3d2e0ef7e8cdd0f279d4b9c9ed59bdff3249d1bded19219ca5f3ac7a54fe5720bcd0df46c3a17ea56564eeaaffee3bf201674aaff280238490da3f39c
7
- data.tar.gz: 846c7de8900513aaafe1bb12067a1de53708575ee41329d3498b954e32116e731e15ec30c46651c2cf24fd3de26cc9978578755be6244a097af24a5c6c0e85f5
6
+ metadata.gz: 539118a3211bdb79c37b281ec0b6ab7c716a4b3a66dcbd3b8142e2f154369d64d152dcda66288ead9759d30ecff01066840ca3f65da53cee6b0b77d70c29a84e
7
+ data.tar.gz: 0150523a1366d0530533fcce7538210b8cfe302e861aad84e11c33f41920c9263196ea5b2aef906afbe4bdcb1e8e5b25be70fa9f2824fc7c842cf04484978df4
data/Gemfile CHANGED
@@ -6,10 +6,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
7
  gemspec
8
8
 
9
- # TEMPORARY pin: the flavor/taste table (metanorma-core#18) merged to main on
10
- # 2026-09-06 but is unreleased (latest gem 0.2.3 predates it). Drop this pin
11
- # once metanorma-core > 0.2.3 is on rubygems.
12
- gem "metanorma-core", github: "metanorma/metanorma-core", branch: "main"
9
+ gem "metanorma-core", "~> 0.2.5.pre.alpha" # published flavor/taste table (metanorma-core#18)
13
10
  # TEMPORARY pin for the compile fix (implicit presentation dependency +
14
11
  # non-mutating output_formats, metanorma#602, rebase-merged into
15
12
  # feat/flavors-table); drop when that branch reaches rubygems.
@@ -49,9 +46,10 @@ gem "suma", github: "metanorma/suma", branch: "main"
49
46
  # released plugin-lutaml 0.7.50 dropped the preprocessor names standoc
50
47
  # registers (LutamlDataPreprocessor); main carries them (generic#133)
51
48
  gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "main"
52
- # canonical 3.x pre line (the oiml chain needs prerelease relaton-logger)
53
- gem "relaton", "= 3.0.0.pre.alpha.11"
54
- gem "relaton-render", ">= 3.0.0.pre.alpha.43"
49
+ # relaton 3.0.0 is released; the α-era exact pin sorts below it and
50
+ # conflicts with released metanorma-document's `relaton ~> 3.0` floor
51
+ gem "relaton", "~> 3.0"
52
+ gem "relaton-render", "~> 3.0"
55
53
  # coherent core mains: the α relaton line needs them (released ones cap render at 1.x)
56
54
  gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "main"
57
55
  gem "metanorma-document", github: "metanorma/metanorma-document", branch: "main"
@@ -563,7 +563,9 @@
563
563
  <xsl:call-template name="getName"/>
564
564
  </xsl:variable>
565
565
  <xsl:variable name="variant_title">
566
- <xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
566
+ <xsl:if test="not(self::mn:annex)">
567
+ <xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
568
+ </xsl:if>
567
569
  </xsl:variable>
568
570
 
569
571
  <mnx:item id="{@id}" level="{$level}" section="{$section}" display="{$display}">
@@ -15871,6 +15873,23 @@
15871
15873
  </xsl:choose>
15872
15874
  </xsl:template>
15873
15875
 
15876
+ <xsl:template name="getVariable">
15877
+ <xsl:param name="variable"/>
15878
+ <!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
15879
+ in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
15880
+ <xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
15881
+ <xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
15882
+ </xsl:template>
15883
+
15884
+ <!-- get variable value with the internal elements(nodes), e.g. formatting -->
15885
+ <xsl:template name="getVariableCopyOf">
15886
+ <xsl:param name="variable"/>
15887
+ <!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
15888
+ in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
15889
+ <xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
15890
+ <xsl:copy-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]/node()"/>
15891
+ </xsl:template>
15892
+
15874
15893
  <!-- ============================================= -->
15875
15894
  <!-- mode="print_as_xml", for debug purposes -->
15876
15895
  <!-- ============================================= -->
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Taste
5
- VERSION = "1.1.3.pre.alpha.1"
5
+ VERSION = "1.1.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-taste
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3.pre.alpha.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-22 00:00:00.000000000 Z
11
+ date: 2026-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model