metanorma-jis 1.2.1.pre.alpha.2 → 1.2.1

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: d0a27d2b251d8c1116603ded8d522eb6e523c2d20bdddb0e2ff69ad1c38b7a11
4
- data.tar.gz: 4b61a1cdbec630a94d85fe686b9bc87316900a18c240b69e0a65a4342b60d613
3
+ metadata.gz: 8b953351d7bf0f66e5a8f35acf7ac5a4a2fbde4fa75dc82ff15a45237fdfe10d
4
+ data.tar.gz: 4f3f07fa58d185b43d9591ac7590b8c254da05e5e4160275971aca215e31d182
5
5
  SHA512:
6
- metadata.gz: 84fc130d7051fa1b7cc6044043e1182874c71118b85880cca00b2638d0d527069b47cc0160cf64dd07a03d03a31b825d86302524c6ce8a0a997e3ff14e16a2c2
7
- data.tar.gz: 888db147eaf79aefe5be58c862c8e45704bc172a9fbb0106c9b76ced59d4d5eee27916ec36fc3280a410564b741f7475ed8f4eaf98c8f1e45f34720f914c7102
6
+ metadata.gz: fed83ba4a13ab96dd894520bffcf9439a812e388eff8ea09d940fea23479d014418e00f09d0592f94d6cf75c65e8aeec7f9975f354697a310fb40c8d8548009a
7
+ data.tar.gz: 92c5edd1ab7c02a64c5e2860dbbe370d801ae44e705705757040496b38c6540f897b44af572825ab8ea213dab39db0db53a9ad97a440e2121205e41fe0862ac1
data/Gemfile.lock CHANGED
@@ -23,7 +23,7 @@ GIT
23
23
  PATH
24
24
  remote: .
25
25
  specs:
26
- metanorma-jis (1.2.1.pre.alpha.2)
26
+ metanorma-jis (1.2.1)
27
27
  japanese_calendar (~> 0)
28
28
  liquid (~> 5.4)
29
29
  metanorma-iso (>= 3.4.2)
@@ -1208,7 +1208,7 @@ CHECKSUMS
1208
1208
  metanorma-core (0.2.5.pre.alpha.1) sha256=6097e11ead9907850da0160afd9b5e03a4226324eba5afc14e97fe8a6c49ec69
1209
1209
  metanorma-document (0.5.2.pre.alpha.2) sha256=7f035f37fed887ec78d06eb7c79097c669f589c639799d6fecbe2ea47b6e7601
1210
1210
  metanorma-iso (3.5.1.pre.alpha.3)
1211
- metanorma-jis (1.2.1.pre.alpha.2)
1211
+ metanorma-jis (1.2.1)
1212
1212
  metanorma-mirror (1.0.0)
1213
1213
  metanorma-mko (1.1.1) sha256=4c8fb55b485b49341c28cad0e862889e5d3855547adf21accce627714a35a41a
1214
1214
  metanorma-plugin-asciichem (0.1.4) sha256=47711680f202c60f9f698b721e1df3c3e6dcb1b9d6683cb1edcef84d6cda61a8
@@ -20,6 +20,23 @@
20
20
  </xsl:variable>
21
21
  <xsl:variable name="numbers_japanese" select="xalan:nodeset($numbers_japanese_)"/>
22
22
 
23
+ <xsl:variable name="variables_">
24
+ <xsl:for-each select="//mn:metanorma">
25
+ <xsl:variable name="num"><xsl:number level="any" count="mn:metanorma"/></xsl:variable>
26
+
27
+ <xsl:variable name="current_document">
28
+ <xsl:copy-of select="."/>
29
+ </xsl:variable>
30
+
31
+ <xsl:for-each select="xalan:nodeset($current_document)">
32
+ <mnx:doc num="{$num}">
33
+
34
+ </mnx:doc>
35
+ </xsl:for-each>
36
+ </xsl:for-each>
37
+ </xsl:variable>
38
+ <xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
39
+
23
40
  <xsl:variable name="contents_">
24
41
  <xsl:variable name="bundle" select="count(//mn:metanorma) &gt; 1"/>
25
42
 
@@ -21093,6 +21110,23 @@
21093
21110
  </xsl:choose>
21094
21111
  </xsl:template>
21095
21112
 
21113
+ <xsl:template name="getVariable">
21114
+ <xsl:param name="variable"/>
21115
+ <!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
21116
+ in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
21117
+ <xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
21118
+ <xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
21119
+ </xsl:template>
21120
+
21121
+ <!-- get variable value with the internal elements(nodes), e.g. formatting -->
21122
+ <xsl:template name="getVariableCopyOf">
21123
+ <xsl:param name="variable"/>
21124
+ <!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
21125
+ in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
21126
+ <xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
21127
+ <xsl:copy-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]/node()"/>
21128
+ </xsl:template>
21129
+
21096
21130
  <!-- ============================================= -->
21097
21131
  <!-- mode="print_as_xml", for debug purposes -->
21098
21132
  <!-- ============================================= -->
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Jis
3
- VERSION = "1.2.1.pre.alpha.2".freeze
3
+ VERSION = "1.2.1".freeze
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-jis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1.pre.alpha.2
4
+ version: 1.2.1
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-28 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: japanese_calendar