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

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: 6f43f6b92b899fb2dca3d9fef653b6df23f2c05cd23f8968c9bd94ed01412b05
4
+ data.tar.gz: ed2a0576f07d512fddaf40407bb578186d8446bf62d119bb7487dc4503ff5547
5
5
  SHA512:
6
- metadata.gz: 99c950b3d2e0ef7e8cdd0f279d4b9c9ed59bdff3249d1bded19219ca5f3ac7a54fe5720bcd0df46c3a17ea56564eeaaffee3bf201674aaff280238490da3f39c
7
- data.tar.gz: 846c7de8900513aaafe1bb12067a1de53708575ee41329d3498b954e32116e731e15ec30c46651c2cf24fd3de26cc9978578755be6244a097af24a5c6c0e85f5
6
+ metadata.gz: 40cd9b9b94b0bcb663af11f16b332b1ae0e4326d16b508f859a86c048a4b0fcbafa6f0a4affcdfa2511d16e656f7743f313e536d54b35dd4395c2cbeb3c11018
7
+ data.tar.gz: 67b17d4824339f31aed8cc327402350600571b8cb39e6a7795eeedf996da5ddfcf7d826000502ac478c273ac4f31378e170c0be6b318619956fe5a130d4e5aa7
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
  <!-- ============================================= -->
@@ -19,3 +19,7 @@ doctypes:
19
19
  base: international-standard
20
20
  - taste: guide
21
21
  base: guide
22
+ # pass-through: the registry keys on doctype=directive for category mapping,
23
+ # so it must survive into the emitted XML/Relaton (isodoc styles it natively)
24
+ - taste: directive
25
+ base: directive
@@ -2,11 +2,12 @@
2
2
  === {blank}
3
3
  (c) {{ docyear }} Enosema Foundation.
4
4
 
5
- All rights reserved. Unless otherwise specified, or required in the context of
6
- its implementation, no part of this publication may be reproduced or utilized
7
- otherwise in any form or by any means, electronic or mechanical, including
8
- photocopying, or posting on the internet or an intranet, without prior written
9
- permission. Permission can be requested from the Enosema Foundation.
5
+ This document is made available under the Creative Commons Attribution 4.0
6
+ International (CC BY 4.0) license. Unless otherwise specified, or required in
7
+ the context of its implementation, you are free to use, share, and adapt this
8
+ document, provided that appropriate credit is given to the Enosema Foundation
9
+ and that any changes are indicated. The full license text is available at
10
+ https://creativecommons.org/licenses/by/4.0/.
10
11
 
11
12
  Enosema Foundation +
12
13
  2885 Sanford Ave Sw Suite 32361 +
@@ -1,3 +1,4 @@
1
1
  doctype_dict:
2
2
  standard: Standard
3
3
  guide: Guide
4
+ directive: Directive
@@ -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.4"
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.4
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-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model