metanorma-iho 1.4.1.pre.alpha.2 → 1.4.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 +4 -4
- data/Gemfile +7 -9
- data/lib/isodoc/iho/iho.specification.xsl +20 -13
- data/lib/isodoc/iho/iho.standard.xsl +20 -13
- data/lib/metanorma/iho/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f707e37648170f9ea9c41dea77c2cc25efda9e7880d87b55060bab513e5ba7e5
|
|
4
|
+
data.tar.gz: bf09cd75538c598def2a2d53c8bb99d3f2d4531ddae112c081488b04efd1d2e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb1eeabf4d0d54cdc06cdd810cb81060c03a38d383a8860cc301ccf7a711bfadbcef34459af8650adc4e102fe291d51bd8793210c4342b826ef56ba9e026e42f
|
|
7
|
+
data.tar.gz: f7bf74820bd1876f5f0453bb771a2769645e913ea16c95ff7cbf2f3db287955e387d797f2062f4d722e5595c71ae375cd9871bcd6fed7759c34e2fe22fcbf076
|
data/Gemfile
CHANGED
|
@@ -3,17 +3,15 @@ git_source(:github) { |repo| "https://github.com/#{repo}" }
|
|
|
3
3
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
|
-
# canonical
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
gem "
|
|
10
|
-
gem "relaton-cli", "~> 3.0.0.pre.alpha"
|
|
11
|
-
gem "isodoc", github: "metanorma/isodoc", branch: "main"
|
|
6
|
+
# canonical line: relaton 3 finals over the α engine line
|
|
7
|
+
gem "pubid", "~> 2.0"
|
|
8
|
+
gem "relaton-cli", "~> 3.0"
|
|
9
|
+
gem "isodoc", "~> 3.7.4.pre.alpha"
|
|
12
10
|
gem "isodoc-i18n", github: "metanorma/isodoc-i18n", branch: "main"
|
|
13
|
-
gem "metanorma-standoc",
|
|
14
|
-
gem "metanorma-document",
|
|
11
|
+
gem "metanorma-standoc", "~> 3.5.1.pre.alpha"
|
|
12
|
+
gem "metanorma-document", "~> 0.5.2.pre.alpha"
|
|
15
13
|
gem "metanorma-core", github: "metanorma/metanorma-core", branch: "main"
|
|
16
14
|
gem "metanorma-iso", github: "metanorma/metanorma-iso", branch: "main"
|
|
17
15
|
gem "metanorma-generic", github: "metanorma/metanorma-generic", branch: "main"
|
|
18
|
-
gem "metanorma-utils",
|
|
16
|
+
gem "metanorma-utils", "~> 2.0"
|
|
19
17
|
gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "main"
|
|
@@ -43,18 +43,6 @@
|
|
|
43
43
|
</xsl:variable>
|
|
44
44
|
<xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
|
|
45
45
|
|
|
46
|
-
<xsl:template name="getVariable">
|
|
47
|
-
<xsl:param name="variable"/>
|
|
48
|
-
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
49
|
-
<xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
|
|
50
|
-
</xsl:template>
|
|
51
|
-
|
|
52
|
-
<xsl:template name="getVariableCopyOf">
|
|
53
|
-
<xsl:param name="variable"/>
|
|
54
|
-
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
55
|
-
<xsl:copy-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]/node()"/>
|
|
56
|
-
</xsl:template>
|
|
57
|
-
|
|
58
46
|
<!-- Example:
|
|
59
47
|
<item level="1" id="Foreword" display="true">Foreword</item>
|
|
60
48
|
<item id="term-script" display="false">3.2</item>
|
|
@@ -913,7 +901,9 @@
|
|
|
913
901
|
<xsl:call-template name="getName"/>
|
|
914
902
|
</xsl:variable>
|
|
915
903
|
<xsl:variable name="variant_title">
|
|
916
|
-
<xsl:
|
|
904
|
+
<xsl:if test="not(self::mn:annex)">
|
|
905
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
906
|
+
</xsl:if>
|
|
917
907
|
</xsl:variable>
|
|
918
908
|
|
|
919
909
|
<xsl:variable name="type">
|
|
@@ -16540,6 +16530,23 @@
|
|
|
16540
16530
|
</xsl:choose>
|
|
16541
16531
|
</xsl:template>
|
|
16542
16532
|
|
|
16533
|
+
<xsl:template name="getVariable">
|
|
16534
|
+
<xsl:param name="variable"/>
|
|
16535
|
+
<!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
|
|
16536
|
+
in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
|
|
16537
|
+
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
16538
|
+
<xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
|
|
16539
|
+
</xsl:template>
|
|
16540
|
+
|
|
16541
|
+
<!-- get variable value with the internal elements(nodes), e.g. formatting -->
|
|
16542
|
+
<xsl:template name="getVariableCopyOf">
|
|
16543
|
+
<xsl:param name="variable"/>
|
|
16544
|
+
<!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
|
|
16545
|
+
in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
|
|
16546
|
+
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
16547
|
+
<xsl:copy-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]/node()"/>
|
|
16548
|
+
</xsl:template>
|
|
16549
|
+
|
|
16543
16550
|
<!-- ============================================= -->
|
|
16544
16551
|
<!-- mode="print_as_xml", for debug purposes -->
|
|
16545
16552
|
<!-- ============================================= -->
|
|
@@ -43,18 +43,6 @@
|
|
|
43
43
|
</xsl:variable>
|
|
44
44
|
<xsl:variable name="variables" select="xalan:nodeset($variables_)"/>
|
|
45
45
|
|
|
46
|
-
<xsl:template name="getVariable">
|
|
47
|
-
<xsl:param name="variable"/>
|
|
48
|
-
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
49
|
-
<xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
|
|
50
|
-
</xsl:template>
|
|
51
|
-
|
|
52
|
-
<xsl:template name="getVariableCopyOf">
|
|
53
|
-
<xsl:param name="variable"/>
|
|
54
|
-
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
55
|
-
<xsl:copy-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]/node()"/>
|
|
56
|
-
</xsl:template>
|
|
57
|
-
|
|
58
46
|
<!-- Example:
|
|
59
47
|
<item level="1" id="Foreword" display="true">Foreword</item>
|
|
60
48
|
<item id="term-script" display="false">3.2</item>
|
|
@@ -913,7 +901,9 @@
|
|
|
913
901
|
<xsl:call-template name="getName"/>
|
|
914
902
|
</xsl:variable>
|
|
915
903
|
<xsl:variable name="variant_title">
|
|
916
|
-
<xsl:
|
|
904
|
+
<xsl:if test="not(self::mn:annex)">
|
|
905
|
+
<xsl:copy-of select="mn:variant-title[@type = 'toc']/node()"/>
|
|
906
|
+
</xsl:if>
|
|
917
907
|
</xsl:variable>
|
|
918
908
|
|
|
919
909
|
<xsl:variable name="type">
|
|
@@ -16540,6 +16530,23 @@
|
|
|
16540
16530
|
</xsl:choose>
|
|
16541
16531
|
</xsl:template>
|
|
16542
16532
|
|
|
16533
|
+
<xsl:template name="getVariable">
|
|
16534
|
+
<xsl:param name="variable"/>
|
|
16535
|
+
<!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
|
|
16536
|
+
in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
|
|
16537
|
+
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
16538
|
+
<xsl:value-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]"/>
|
|
16539
|
+
</xsl:template>
|
|
16540
|
+
|
|
16541
|
+
<!-- get variable value with the internal elements(nodes), e.g. formatting -->
|
|
16542
|
+
<xsl:template name="getVariableCopyOf">
|
|
16543
|
+
<xsl:param name="variable"/>
|
|
16544
|
+
<!-- Note: need insert <xsl:variable name="setVariable" select="java:org.metanorma.fop.global.Variables.setVariable('num', $num)"/> before
|
|
16545
|
+
in the iteration <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma"> -->
|
|
16546
|
+
<xsl:variable name="num" select="number(java:org.metanorma.fop.global.Variables.getVariable('num'))"/>
|
|
16547
|
+
<xsl:copy-of select="$variables/mnx:doc[@num = $num]/*[local-name() = $variable]/node()"/>
|
|
16548
|
+
</xsl:template>
|
|
16549
|
+
|
|
16543
16550
|
<!-- ============================================= -->
|
|
16544
16551
|
<!-- mode="print_as_xml", for debug purposes -->
|
|
16545
16552
|
<!-- ============================================= -->
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-iho
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.1
|
|
4
|
+
version: 1.4.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: 2026-10-
|
|
11
|
+
date: 2026-10-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-generic
|