metanorma-iho 0.7.10 → 0.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iho/iho.specification.xsl +19 -9
- data/lib/isodoc/iho/iho.standard.xsl +19 -9
- data/lib/metanorma/iho/isodoc.rng +18 -0
- 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: cd3a00b263b30176991012b67463267958a1bf2b4632e519c4c268b9fc124285
|
4
|
+
data.tar.gz: d8a8e766449c04ee7d8681fcfbcffce9a8ef6f479885cae93d5bcdcc3a040266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d5d74c12fb36501b11c76b04b44bca89518f98922d62719e39f0ec8993d93d177102a7ea2311ff113d173e73f78ab0a1b710df664b3ec2265219f057395c72d
|
7
|
+
data.tar.gz: e87565af9cf3b16b04227f71fd781cc9081ca385702bb360a8d724d518467d5baea4b5abc42f6d6c192a5e2db2e2ff19481d7ed35dc6b154d3ebb1d33b799054
|
@@ -2761,7 +2761,7 @@
|
|
2761
2761
|
</xsl:attribute>
|
2762
2762
|
</xsl:for-each>
|
2763
2763
|
|
2764
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2764
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2765
2765
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
2766
2766
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
2767
2767
|
</xsl:if>
|
@@ -2805,7 +2805,7 @@
|
|
2805
2805
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
2806
2806
|
</xsl:when>
|
2807
2807
|
<xsl:otherwise>
|
2808
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2808
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2809
2809
|
</xsl:otherwise>
|
2810
2810
|
</xsl:choose>
|
2811
2811
|
|
@@ -3323,7 +3323,7 @@
|
|
3323
3323
|
<xsl:param name="colwidths"/>
|
3324
3324
|
<xsl:param name="colgroup"/>
|
3325
3325
|
|
3326
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3326
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3327
3327
|
|
3328
3328
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
3329
3329
|
|
@@ -3396,6 +3396,7 @@
|
|
3396
3396
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
3397
3397
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
3398
3398
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
3399
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
3399
3400
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
3400
3401
|
|
3401
3402
|
<xsl:variable name="isDisplayRowSeparator">
|
@@ -3404,7 +3405,7 @@
|
|
3404
3405
|
|
3405
3406
|
<!-- horizontal row separator -->
|
3406
3407
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
3407
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
3408
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
3408
3409
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
3409
3410
|
|
3410
3411
|
<xsl:call-template name="setBordersTableArray"/>
|
@@ -3665,13 +3666,13 @@
|
|
3665
3666
|
</fo:table-cell>
|
3666
3667
|
</xsl:template> <!-- td -->
|
3667
3668
|
|
3668
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
3669
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
3669
3670
|
|
3670
3671
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
3671
3672
|
|
3672
3673
|
<xsl:call-template name="refine_table-note-style"/>
|
3673
3674
|
|
3674
|
-
<!-- Table's note name (NOTE, for example) -->
|
3675
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
3675
3676
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
3676
3677
|
|
3677
3678
|
<xsl:call-template name="refine_table-note-name-style"/>
|
@@ -3685,7 +3686,7 @@
|
|
3685
3686
|
|
3686
3687
|
</xsl:template> <!-- table/note -->
|
3687
3688
|
|
3688
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
3689
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
3689
3690
|
<xsl:apply-templates/>
|
3690
3691
|
</xsl:template>
|
3691
3692
|
|
@@ -8692,6 +8693,12 @@
|
|
8692
8693
|
|
8693
8694
|
</xsl:template>
|
8694
8695
|
|
8696
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
8697
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
8698
|
+
<xsl:apply-templates/>
|
8699
|
+
</fo:inline>
|
8700
|
+
</xsl:template>
|
8701
|
+
|
8695
8702
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
8696
8703
|
<xsl:param name="fo_element">block</xsl:param>
|
8697
8704
|
|
@@ -9263,6 +9270,9 @@
|
|
9263
9270
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
9264
9271
|
</xsl:choose>
|
9265
9272
|
</xsl:when>
|
9273
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
9274
|
+
<xsl:value-of select="@label"/>
|
9275
|
+
</xsl:when>
|
9266
9276
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
9267
9277
|
|
9268
9278
|
<!-- Example: for BSI <?list-start 2?> -->
|
@@ -9320,10 +9330,10 @@
|
|
9320
9330
|
<xsl:when test="$type = 'arabic'">
|
9321
9331
|
1)
|
9322
9332
|
</xsl:when>
|
9323
|
-
<xsl:when test="$type = 'alphabet'">
|
9333
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
9324
9334
|
a)
|
9325
9335
|
</xsl:when>
|
9326
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
9336
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
9327
9337
|
A.
|
9328
9338
|
</xsl:when>
|
9329
9339
|
<xsl:when test="$type = 'roman'">
|
@@ -2761,7 +2761,7 @@
|
|
2761
2761
|
</xsl:attribute>
|
2762
2762
|
</xsl:for-each>
|
2763
2763
|
|
2764
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2764
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
2765
2765
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
2766
2766
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
2767
2767
|
</xsl:if>
|
@@ -2805,7 +2805,7 @@
|
|
2805
2805
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
2806
2806
|
</xsl:when>
|
2807
2807
|
<xsl:otherwise>
|
2808
|
-
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2808
|
+
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note') and not(local-name() = 'example') and not(local-name() = 'dl') and not(local-name() = 'source') and not(local-name() = 'p') and not(local-name() = 'thead') and not(local-name() = 'tfoot')]"/> <!-- process all table' elements, except name, header, footer, note, source and dl which render separaterely -->
|
2809
2809
|
</xsl:otherwise>
|
2810
2810
|
</xsl:choose>
|
2811
2811
|
|
@@ -3323,7 +3323,7 @@
|
|
3323
3323
|
<xsl:param name="colwidths"/>
|
3324
3324
|
<xsl:param name="colgroup"/>
|
3325
3325
|
|
3326
|
-
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3326
|
+
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
|
3327
3327
|
|
3328
3328
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
3329
3329
|
|
@@ -3396,6 +3396,7 @@
|
|
3396
3396
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
3397
3397
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
3398
3398
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
3399
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
3399
3400
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
3400
3401
|
|
3401
3402
|
<xsl:variable name="isDisplayRowSeparator">
|
@@ -3404,7 +3405,7 @@
|
|
3404
3405
|
|
3405
3406
|
<!-- horizontal row separator -->
|
3406
3407
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
3407
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
3408
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
3408
3409
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
3409
3410
|
|
3410
3411
|
<xsl:call-template name="setBordersTableArray"/>
|
@@ -3665,13 +3666,13 @@
|
|
3665
3666
|
</fo:table-cell>
|
3666
3667
|
</xsl:template> <!-- td -->
|
3667
3668
|
|
3668
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
3669
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
3669
3670
|
|
3670
3671
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
3671
3672
|
|
3672
3673
|
<xsl:call-template name="refine_table-note-style"/>
|
3673
3674
|
|
3674
|
-
<!-- Table's note name (NOTE, for example) -->
|
3675
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
3675
3676
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
3676
3677
|
|
3677
3678
|
<xsl:call-template name="refine_table-note-name-style"/>
|
@@ -3685,7 +3686,7 @@
|
|
3685
3686
|
|
3686
3687
|
</xsl:template> <!-- table/note -->
|
3687
3688
|
|
3688
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
3689
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
3689
3690
|
<xsl:apply-templates/>
|
3690
3691
|
</xsl:template>
|
3691
3692
|
|
@@ -8692,6 +8693,12 @@
|
|
8692
8693
|
|
8693
8694
|
</xsl:template>
|
8694
8695
|
|
8696
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
8697
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
8698
|
+
<xsl:apply-templates/>
|
8699
|
+
</fo:inline>
|
8700
|
+
</xsl:template>
|
8701
|
+
|
8695
8702
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
8696
8703
|
<xsl:param name="fo_element">block</xsl:param>
|
8697
8704
|
|
@@ -9263,6 +9270,9 @@
|
|
9263
9270
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
9264
9271
|
</xsl:choose>
|
9265
9272
|
</xsl:when>
|
9273
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
9274
|
+
<xsl:value-of select="@label"/>
|
9275
|
+
</xsl:when>
|
9266
9276
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
9267
9277
|
|
9268
9278
|
<!-- Example: for BSI <?list-start 2?> -->
|
@@ -9320,10 +9330,10 @@
|
|
9320
9330
|
<xsl:when test="$type = 'arabic'">
|
9321
9331
|
1)
|
9322
9332
|
</xsl:when>
|
9323
|
-
<xsl:when test="$type = 'alphabet'">
|
9333
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
9324
9334
|
a)
|
9325
9335
|
</xsl:when>
|
9326
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
9336
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
9327
9337
|
A.
|
9328
9338
|
</xsl:when>
|
9329
9339
|
<xsl:when test="$type = 'roman'">
|
@@ -1012,6 +1012,7 @@
|
|
1012
1012
|
<ref name="del"/>
|
1013
1013
|
<ref name="span"/>
|
1014
1014
|
<ref name="erefstack"/>
|
1015
|
+
<ref name="date_inline"/>
|
1015
1016
|
</choice>
|
1016
1017
|
</define>
|
1017
1018
|
<define name="add">
|
@@ -1053,6 +1054,23 @@
|
|
1053
1054
|
</oneOrMore>
|
1054
1055
|
</element>
|
1055
1056
|
</define>
|
1057
|
+
<define name="date_inline">
|
1058
|
+
<element name="date">
|
1059
|
+
<attribute name="value"/>
|
1060
|
+
<optional>
|
1061
|
+
<attribute name="format"/>
|
1062
|
+
</optional>
|
1063
|
+
<optional>
|
1064
|
+
<attribute name="language"/>
|
1065
|
+
</optional>
|
1066
|
+
<optional>
|
1067
|
+
<attribute name="script"/>
|
1068
|
+
</optional>
|
1069
|
+
<optional>
|
1070
|
+
<attribute name="locale"/>
|
1071
|
+
</optional>
|
1072
|
+
</element>
|
1073
|
+
</define>
|
1056
1074
|
<define name="concept">
|
1057
1075
|
<element name="concept">
|
1058
1076
|
<optional>
|
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.7.
|
4
|
+
version: 0.7.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05
|
11
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|