metanorma-plateau 1.3.2.pre.alpha.2 → 1.3.2

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: 2b56b4e3149fbcf6b5601b4684b9f5f563f53130e78dd87905e44212fe63c5bc
4
- data.tar.gz: 617374d43502177d97d239491bfb8e96be89077fcf083fd051abed67a6923d03
3
+ metadata.gz: dcbb89337e0d9e649ace3dcb324510e427b5421b31b296ddb8edb86beae26c82
4
+ data.tar.gz: 0cf196072e7f70644ebcc3b7d938fede1f79c705d0dadb3dfa619d04c42fb527
5
5
  SHA512:
6
- metadata.gz: ff95c78528e2fb1020750308730dfbfdf452623a9116ab8901b9ca5add0efe791be9c4cd4f90ea076910d3342d1c3c12382de80b120b29afafbac028e6e61b66
7
- data.tar.gz: 3e474fb387491450a2560bec5842f88c74c0f3767e59fd11b8faf8468c0c5c44c62a017916f6af5a9b36053ac424c51058c34a8ed0c068a31ac94470dd8bbe2a
6
+ metadata.gz: a101abe64f60916cee137b1df344f0ade509ee9a3902639e61724de5f87fc8f1718263983c16a5c0ad87b1166912cdc18833f35fc44af183076d6c2fbd561168
7
+ data.tar.gz: 1271d76a7119e0502117ab90e090becc8dc973416918deb2c228915c13a8eedbcca7e11ba92b5489205f42f4e4fc0fe27da202aba7b74713131e09b4f1893f4b
data/Gemfile CHANGED
@@ -8,9 +8,8 @@ gemspec
8
8
 
9
9
  # The ja-en availability delta needs the fixed extends merge
10
10
  # (delta labels win per key) shipped in relaton-render alpha.32;
11
- # metanorma-jis's loose ~> constraint would let cached older alphas
12
- # resolve in CI
13
- gem "relaton-render", ">= 3.0.0.pre.alpha.32"
11
+ # resolve in CI; relaton-render 3.0.0 final carries it
12
+ gem "relaton-render", "~> 3.0"
14
13
 
15
14
  gem "gem-release"
16
15
 
@@ -28,6 +28,23 @@
28
28
  <xsl:value-of select="/*/mn:bibdata/mn:title[@language = 'ja' and @type = 'title-main']"/>
29
29
  </xsl:variable>
30
30
 
31
+ <xsl:variable name="variables_">
32
+ <xsl:for-each select="//mn:metanorma">
33
+ <xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
34
+
35
+ <xsl:variable name="current_document">
36
+ <xsl:copy-of select="."/>
37
+ </xsl:variable>
38
+
39
+ <xsl:for-each select="xalan:nodeset($current_document)">
40
+ <mnx:doc num="{$num}">
41
+
42
+ </mnx:doc>
43
+ </xsl:for-each>
44
+ </xsl:for-each>
45
+ </xsl:variable>
46
+ <xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
47
+
31
48
  <xsl:variable name="contents_">
32
49
  <xsl:variable name="bundle" select="count(//mn:metanorma) &gt; 1"/>
33
50
 
@@ -17446,6 +17463,23 @@
17446
17463
  </xsl:choose>
17447
17464
  </xsl:template>
17448
17465
 
17466
+ <xsl:template name="getVariable">
17467
+ <xsl:param name="variable"/>
17468
+ <!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
17469
+ in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
17470
+ <xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
17471
+ <xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
17472
+ </xsl:template>
17473
+
17474
+ <!-- get variable value with the internal elements(nodes), e.g. formatting -->
17475
+ <xsl:template name="getVariableCopyOf">
17476
+ <xsl:param name="variable"/>
17477
+ <!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
17478
+ in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
17479
+ <xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
17480
+ <xsl:copy-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]/node()"/>
17481
+ </xsl:template>
17482
+
17449
17483
  <!-- ============================================= -->
17450
17484
  <!-- mode="print_as_xml", for debug purposes -->
17451
17485
  <!-- ============================================= -->
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "1.3.2.pre.alpha.2".freeze
3
+ VERSION = "1.3.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plateau
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2.pre.alpha.2
4
+ version: 1.3.2
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-27 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: metanorma-jis