metanorma-ribose 2.2.9 → 2.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ribose/ribose.standard.xsl +19 -9
- data/lib/metanorma/ribose/isodoc.rng +18 -0
- data/lib/metanorma/ribose/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: 6760f62f6f13388645da96c08bb6fb57503caa0d15d0533d4186c0c5a7a630e9
|
4
|
+
data.tar.gz: 2649528ddd82313deaf120d4465362a711e4ec9d40940f145c801bca3f46224b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df7524b04ae04047f829ad4570f7c0e0a6949720cff5f5eaab00bf6d8d1f9f3c8fbce1ba74570cb39f88950499a8722518b324ec22cff32ccef0cb8c58a389bd
|
7
|
+
data.tar.gz: ad1ed3f2674419b6ba2da079556381c62426ae46628977586825d31a363e746d3b85f0644f663c4ecd78dfb1e644e1fe9998acc5d8a721d50f36f82bc05eb548
|
@@ -3208,7 +3208,7 @@
|
|
3208
3208
|
</xsl:attribute>
|
3209
3209
|
</xsl:for-each>
|
3210
3210
|
|
3211
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
3211
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
3212
3212
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
3213
3213
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
3214
3214
|
</xsl:if>
|
@@ -3252,7 +3252,7 @@
|
|
3252
3252
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
3253
3253
|
</xsl:when>
|
3254
3254
|
<xsl:otherwise>
|
3255
|
-
<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 -->
|
3255
|
+
<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 -->
|
3256
3256
|
</xsl:otherwise>
|
3257
3257
|
</xsl:choose>
|
3258
3258
|
|
@@ -3770,7 +3770,7 @@
|
|
3770
3770
|
<xsl:param name="colwidths"/>
|
3771
3771
|
<xsl:param name="colgroup"/>
|
3772
3772
|
|
3773
|
-
<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']"/>
|
3773
|
+
<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']"/>
|
3774
3774
|
|
3775
3775
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
3776
3776
|
|
@@ -3843,6 +3843,7 @@
|
|
3843
3843
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
3844
3844
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
3845
3845
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
3846
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
3846
3847
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
3847
3848
|
|
3848
3849
|
<xsl:variable name="isDisplayRowSeparator">
|
@@ -3851,7 +3852,7 @@
|
|
3851
3852
|
|
3852
3853
|
<!-- horizontal row separator -->
|
3853
3854
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
3854
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
3855
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
3855
3856
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
3856
3857
|
|
3857
3858
|
<xsl:call-template name="setBordersTableArray"/>
|
@@ -4112,13 +4113,13 @@
|
|
4112
4113
|
</fo:table-cell>
|
4113
4114
|
</xsl:template> <!-- td -->
|
4114
4115
|
|
4115
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
4116
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
4116
4117
|
|
4117
4118
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
4118
4119
|
|
4119
4120
|
<xsl:call-template name="refine_table-note-style"/>
|
4120
4121
|
|
4121
|
-
<!-- Table's note name (NOTE, for example) -->
|
4122
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
4122
4123
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
4123
4124
|
|
4124
4125
|
<xsl:call-template name="refine_table-note-name-style"/>
|
@@ -4132,7 +4133,7 @@
|
|
4132
4133
|
|
4133
4134
|
</xsl:template> <!-- table/note -->
|
4134
4135
|
|
4135
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
4136
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
4136
4137
|
<xsl:apply-templates/>
|
4137
4138
|
</xsl:template>
|
4138
4139
|
|
@@ -9081,6 +9082,12 @@
|
|
9081
9082
|
|
9082
9083
|
</xsl:template>
|
9083
9084
|
|
9085
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
9086
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
9087
|
+
<xsl:apply-templates/>
|
9088
|
+
</fo:inline>
|
9089
|
+
</xsl:template>
|
9090
|
+
|
9084
9091
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
9085
9092
|
<xsl:param name="fo_element">block</xsl:param>
|
9086
9093
|
|
@@ -9655,6 +9662,9 @@
|
|
9655
9662
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
9656
9663
|
</xsl:choose>
|
9657
9664
|
</xsl:when>
|
9665
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
9666
|
+
<xsl:value-of select="@label"/>
|
9667
|
+
</xsl:when>
|
9658
9668
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
9659
9669
|
|
9660
9670
|
<!-- Example: for BSI <?list-start 2?> -->
|
@@ -9712,10 +9722,10 @@
|
|
9712
9722
|
<xsl:when test="$type = 'arabic'">
|
9713
9723
|
1.
|
9714
9724
|
</xsl:when>
|
9715
|
-
<xsl:when test="$type = 'alphabet'">
|
9725
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
9716
9726
|
a.
|
9717
9727
|
</xsl:when>
|
9718
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
9728
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
9719
9729
|
A.
|
9720
9730
|
</xsl:when>
|
9721
9731
|
<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-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.10
|
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
|