metanorma-iec 2.2.10 → 2.2.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/iec/iec.international-standard.xsl +24 -9
- data/lib/metanorma/iec/isodoc.rng +18 -0
- data/lib/metanorma/iec/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: 88c63cc2c74daf603f426870fdd2ec75742bed39e60a24c6cc8d054eb618271e
|
4
|
+
data.tar.gz: 9a0bc3e736d8aeec83ea4b8284e12c87b4733ff5318355edd3df5eddc0d189fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab7f9ec577953150b3db3f4926ec7ddadc605f1cd9d5e1e3b49daaef130d41f011f80888f5c2a0f32b7babac14ecd5cd024cdfa95efdcb8700863d0897e3ee2
|
7
|
+
data.tar.gz: 631a447183ff8b90700f5d00231b1cabd5d63da62b24f92d49409f08818915aba931a44a37bf2194d50db42b95b29f9b794d789b66450b7b894fae4300f2c9c9
|
@@ -4056,7 +4056,7 @@
|
|
4056
4056
|
</xsl:attribute>
|
4057
4057
|
</xsl:for-each>
|
4058
4058
|
|
4059
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
4059
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
4060
4060
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
4061
4061
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
4062
4062
|
</xsl:if>
|
@@ -4100,7 +4100,7 @@
|
|
4100
4100
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
4101
4101
|
</xsl:when>
|
4102
4102
|
<xsl:otherwise>
|
4103
|
-
<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 -->
|
4103
|
+
<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 -->
|
4104
4104
|
</xsl:otherwise>
|
4105
4105
|
</xsl:choose>
|
4106
4106
|
|
@@ -4642,7 +4642,7 @@
|
|
4642
4642
|
<xsl:param name="colwidths"/>
|
4643
4643
|
<xsl:param name="colgroup"/>
|
4644
4644
|
|
4645
|
-
<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']"/>
|
4645
|
+
<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']"/>
|
4646
4646
|
|
4647
4647
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
4648
4648
|
|
@@ -4719,6 +4719,7 @@
|
|
4719
4719
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
4720
4720
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
4721
4721
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
4722
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
4722
4723
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
4723
4724
|
|
4724
4725
|
<xsl:variable name="isDisplayRowSeparator">
|
@@ -4728,7 +4729,7 @@
|
|
4728
4729
|
|
4729
4730
|
<!-- horizontal row separator -->
|
4730
4731
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
4731
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
4732
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
4732
4733
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
4733
4734
|
|
4734
4735
|
<xsl:call-template name="setBordersTableArray"/>
|
@@ -5033,13 +5034,13 @@
|
|
5033
5034
|
</fo:table-cell>
|
5034
5035
|
</xsl:template> <!-- td -->
|
5035
5036
|
|
5036
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
5037
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
5037
5038
|
|
5038
5039
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
5039
5040
|
|
5040
5041
|
<xsl:call-template name="refine_table-note-style"/>
|
5041
5042
|
|
5042
|
-
<!-- Table's note name (NOTE, for example) -->
|
5043
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
5043
5044
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
5044
5045
|
|
5045
5046
|
<xsl:call-template name="refine_table-note-name-style"/>
|
@@ -5053,7 +5054,7 @@
|
|
5053
5054
|
|
5054
5055
|
</xsl:template> <!-- table/note -->
|
5055
5056
|
|
5056
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
5057
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
5057
5058
|
<xsl:apply-templates/>
|
5058
5059
|
</xsl:template>
|
5059
5060
|
|
@@ -6131,10 +6132,15 @@
|
|
6131
6132
|
<!-- ========================= -->
|
6132
6133
|
<xsl:template match="*[local-name()='em']">
|
6133
6134
|
<fo:inline font-style="italic">
|
6135
|
+
<xsl:call-template name="refine_italic_style"/>
|
6134
6136
|
<xsl:apply-templates/>
|
6135
6137
|
</fo:inline>
|
6136
6138
|
</xsl:template>
|
6137
6139
|
|
6140
|
+
<xsl:template name="refine_italic_style">
|
6141
|
+
|
6142
|
+
</xsl:template>
|
6143
|
+
|
6138
6144
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
6139
6145
|
<xsl:param name="split_keep-within-line"/>
|
6140
6146
|
<fo:inline font-weight="bold">
|
@@ -10087,6 +10093,12 @@
|
|
10087
10093
|
|
10088
10094
|
</xsl:template>
|
10089
10095
|
|
10096
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
10097
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
10098
|
+
<xsl:apply-templates/>
|
10099
|
+
</fo:inline>
|
10100
|
+
</xsl:template>
|
10101
|
+
|
10090
10102
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
10091
10103
|
<xsl:param name="fo_element">block</xsl:param>
|
10092
10104
|
|
@@ -10659,6 +10671,9 @@
|
|
10659
10671
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
10660
10672
|
</xsl:choose>
|
10661
10673
|
</xsl:when>
|
10674
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
10675
|
+
<xsl:value-of select="@label"/>
|
10676
|
+
</xsl:when>
|
10662
10677
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
10663
10678
|
|
10664
10679
|
<!-- Example: for BSI <?list-start 2?> -->
|
@@ -10716,10 +10731,10 @@
|
|
10716
10731
|
<xsl:when test="$type = 'arabic'">
|
10717
10732
|
1)
|
10718
10733
|
</xsl:when>
|
10719
|
-
<xsl:when test="$type = 'alphabet'">
|
10734
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
10720
10735
|
a)
|
10721
10736
|
</xsl:when>
|
10722
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
10737
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
10723
10738
|
A.
|
10724
10739
|
</xsl:when>
|
10725
10740
|
<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-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
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-iso
|