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 +4 -4
- data/lib/isodoc/iho/iho.specification.xsl +8 -2
- data/lib/isodoc/iho/iho.standard.xsl +8 -2
- data/lib/isodoc/iho/xref.rb +7 -5
- data/lib/metanorma/iho/isodoc.rng +5 -5
- 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: 10e7fda9671060c0bff15d92399bb2eb91951998baef2f6a96c09aa1b3e3618b
|
4
|
+
data.tar.gz: 9f8650fbf420bfdd70cf749afac75383d73f07671f8e0bb064682e2d8dcc61ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
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
|
<!-- =============== -->
|
data/lib/isodoc/iho/xref.rb
CHANGED
@@ -36,19 +36,21 @@ module IsoDoc
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def clause_order_main(docxml)
|
39
|
-
if docxml.at(ns("//
|
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/
|
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.
|
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
|
-
<
|
334
|
+
<zeroOrMore>
|
335
335
|
<ref name="source"/>
|
336
|
-
</
|
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
|
-
<
|
383
|
+
<zeroOrMore>
|
384
384
|
<ref name="source"/>
|
385
|
-
</
|
385
|
+
</zeroOrMore>
|
386
386
|
</define>
|
387
387
|
<define name="source">
|
388
388
|
<element name="source">
|
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.
|
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-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|