metanorma-iho 0.9.11 → 0.9.12

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: d16b87b4a799b1e68df60702e316b4c58c34512d3a6c4e91c28f56c8c01b324a
4
- data.tar.gz: c029dbfaae5fc3ee697f7a8bddee327c47eb2b843cd16b4961d9e654a9cf691c
3
+ metadata.gz: 10e7fda9671060c0bff15d92399bb2eb91951998baef2f6a96c09aa1b3e3618b
4
+ data.tar.gz: 9f8650fbf420bfdd70cf749afac75383d73f07671f8e0bb064682e2d8dcc61ec
5
5
  SHA512:
6
- metadata.gz: ed12033c667766938f7d5045bb804ad8c1beed4528e8e920142b061fbb28b7fab33cefcd2da904f7e0e6442b089d0d5df3e082d29e094ec55ed23e25c97e17ef
7
- data.tar.gz: f413dca0ddf19e59d6e9e0fedb20a94627e6803548ec56005c72d2d9d9d7bd7b4f328628202918a07cd9e4a9e997affac7fe5b135758e587f94f26bd248ed513
6
+ metadata.gz: 197d5801f77e89ff9f9fca0844d343dffb8466e8b99c23dbd028a3991351b1110b929ac624420909d7fc4c3cc12f3244dcc21ac0afdd4a287fc83ca98c7de37e
7
+ data.tar.gz: 925f2686aa860ce400f13a27da02b55a4b79e2719c2a0713a3b55dced7fee03d225fc387ad52fcf580749113c80084a94ed6f0a274797a3b2c865691bf50b9cd
@@ -8631,8 +8631,11 @@
8631
8631
  </xsl:template>
8632
8632
 
8633
8633
  <xsl:template match="*[local-name() = 'strong']" mode="contents_item">
8634
+ <xsl:param name="element"/>
8634
8635
  <xsl:copy>
8635
- <xsl:apply-templates mode="contents_item"/>
8636
+ <xsl:apply-templates mode="contents_item">
8637
+ <xsl:with-param name="element" select="$element"/>
8638
+ </xsl:apply-templates>
8636
8639
  </xsl:copy>
8637
8640
  </xsl:template>
8638
8641
 
@@ -8699,7 +8702,10 @@
8699
8702
 
8700
8703
  <!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
8701
8704
  <xsl:template match="*[local-name() = 'span']" mode="contents_item">
8702
- <xsl:apply-templates mode="contents_item"/>
8705
+ <xsl:param name="element"/>
8706
+ <xsl:apply-templates mode="contents_item">
8707
+ <xsl:with-param name="element" select="$element"/>
8708
+ </xsl:apply-templates>
8703
8709
  </xsl:template>
8704
8710
 
8705
8711
  <!-- =============== -->
@@ -8631,8 +8631,11 @@
8631
8631
  </xsl:template>
8632
8632
 
8633
8633
  <xsl:template match="*[local-name() = 'strong']" mode="contents_item">
8634
+ <xsl:param name="element"/>
8634
8635
  <xsl:copy>
8635
- <xsl:apply-templates mode="contents_item"/>
8636
+ <xsl:apply-templates mode="contents_item">
8637
+ <xsl:with-param name="element" select="$element"/>
8638
+ </xsl:apply-templates>
8636
8639
  </xsl:copy>
8637
8640
  </xsl:template>
8638
8641
 
@@ -8699,7 +8702,10 @@
8699
8702
 
8700
8703
  <!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
8701
8704
  <xsl:template match="*[local-name() = 'span']" mode="contents_item">
8702
- <xsl:apply-templates mode="contents_item"/>
8705
+ <xsl:param name="element"/>
8706
+ <xsl:apply-templates mode="contents_item">
8707
+ <xsl:with-param name="element" select="$element"/>
8708
+ </xsl:apply-templates>
8703
8709
  </xsl:template>
8704
8710
 
8705
8711
  <!-- =============== -->
@@ -36,19 +36,21 @@ module IsoDoc
36
36
  end
37
37
 
38
38
  def clause_order_main(docxml)
39
- if docxml.at(ns("//sections/clause//references"))
39
+ if docxml.at(ns("//bibliography//references[@normative = 'true']")) ||
40
+ docxml.at(ns("//sections/references[@normative = 'true']"))
40
41
  [
41
42
  { path: "//sections/clause[@type = 'scope']" },
43
+ { path: "#{@klass.norm_ref_xpath} | //sections/references" },
42
44
  { path: "//sections/terms | //sections/definitions | " \
43
- "//sections/references | " \
44
45
  "//sections/clause[not(@type = 'scope')]", multi: true },
45
46
  ]
46
47
  else
47
48
  [
48
- { path: "//sections/clause[@type = 'scope']" },
49
- { path: @klass.norm_ref_xpath },
50
49
  { path: "//sections/terms | //sections/definitions | " \
51
- "//sections/clause[not(@type = 'scope')]", multi: true },
50
+ "//sections/references | " \
51
+ "//bibliography/references[@normative = 'true'] | " \
52
+ "//bibliography/clause[.//references[@normative = 'true']] | " \
53
+ "//sections/clause", multi: true },
52
54
  ]
53
55
  end
54
56
  end
@@ -17,7 +17,7 @@
17
17
  these elements; we just want one namespace for any child grammars
18
18
  of this.
19
19
  -->
20
- <!-- VERSION v1.3.2 -->
20
+ <!-- VERSION v1.3.3 -->
21
21
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
22
22
  <include href="reqt.rng"/>
23
23
  <include href="basicdoc.rng">
@@ -331,9 +331,9 @@
331
331
  <zeroOrMore>
332
332
  <ref name="table-note"/>
333
333
  </zeroOrMore>
334
- <optional>
334
+ <zeroOrMore>
335
335
  <ref name="source"/>
336
- </optional>
336
+ </zeroOrMore>
337
337
  </define>
338
338
  <define name="FigureAttr">
339
339
  <optional>
@@ -380,9 +380,9 @@
380
380
  <zeroOrMore>
381
381
  <ref name="note"/>
382
382
  </zeroOrMore>
383
- <optional>
383
+ <zeroOrMore>
384
384
  <ref name="source"/>
385
- </optional>
385
+ </zeroOrMore>
386
386
  </define>
387
387
  <define name="source">
388
388
  <element name="source">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IHO
3
- VERSION = "0.9.11".freeze
3
+ VERSION = "0.9.12".freeze
4
4
  end
5
5
  end
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: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic