metanorma-ribose 2.2.9 → 2.2.11
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/ribose/ribose.standard.xsl +148 -43
- data/lib/metanorma/ribose/boilerplate.adoc +39 -0
- data/lib/metanorma/ribose/isodoc.rng +18 -0
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma.yml +1 -0
- metadata +3 -3
- data/lib/metanorma/ribose/boilerplate.xml +0 -47
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de1b7b4d819ecf4191da99de7f00b9dfbfbc73f02c26abbdee4ef9d4274c73d3
|
|
4
|
+
data.tar.gz: 4ba0a78c55a12df977d40e247b6f5c29b20f1edc19882722f3d962802eb9d797
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4646478457e5708c1d83eb408e8ea77d06e1574e47e390df2240c681811afb71e02e5e85cef5f2e3f7b2ba225974184c8e65a9b5b06466c68af110ec9ba777a7
|
|
7
|
+
data.tar.gz: 6bee01be652e3c07a9b43445cc01ced533e6321c5bbb967f02acd79ccad660cc06dd01b8ac6346afe27a65e5656c987b218c5d086a5b30a09a6ff4272e67159a
|
|
@@ -2274,6 +2274,10 @@
|
|
|
2274
2274
|
</xsl:attribute-set> <!-- formula-stem-number-style -->
|
|
2275
2275
|
<!-- End Formula's styles -->
|
|
2276
2276
|
|
|
2277
|
+
<xsl:template name="refine_formula-stem-number-style">
|
|
2278
|
+
|
|
2279
|
+
</xsl:template>
|
|
2280
|
+
|
|
2277
2281
|
<xsl:attribute-set name="image-style">
|
|
2278
2282
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
2279
2283
|
|
|
@@ -2794,13 +2798,13 @@
|
|
|
2794
2798
|
|
|
2795
2799
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
|
2796
2800
|
<xsl:variable name="nodes_preface_">
|
|
2797
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
|
2801
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
|
2798
2802
|
<node id="{@id}"/>
|
|
2799
2803
|
</xsl:for-each>
|
|
2800
2804
|
</xsl:variable>
|
|
2801
2805
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
|
2802
2806
|
|
|
2803
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
|
2807
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
|
2804
2808
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
2805
2809
|
|
|
2806
2810
|
<!-- process Section's title -->
|
|
@@ -2834,12 +2838,12 @@
|
|
|
2834
2838
|
<xsl:apply-templates select="." mode="contents"/>
|
|
2835
2839
|
</xsl:for-each>
|
|
2836
2840
|
|
|
2837
|
-
<xsl:for-each select="/*/*[local-name()='annex']">
|
|
2841
|
+
<!-- <xsl:for-each select="/*/*[local-name()='annex']">
|
|
2838
2842
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
2839
2843
|
<xsl:apply-templates select="." mode="contents"/>
|
|
2840
|
-
</xsl:for-each>
|
|
2844
|
+
</xsl:for-each> -->
|
|
2841
2845
|
|
|
2842
|
-
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0]">
|
|
2846
|
+
<xsl:for-each select="/*/*[local-name()='annex'] | /*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) > 0]">
|
|
2843
2847
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
2844
2848
|
<xsl:apply-templates select="." mode="contents"/>
|
|
2845
2849
|
</xsl:for-each>
|
|
@@ -3208,7 +3212,7 @@
|
|
|
3208
3212
|
</xsl:attribute>
|
|
3209
3213
|
</xsl:for-each>
|
|
3210
3214
|
|
|
3211
|
-
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
3215
|
+
<xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
|
|
3212
3216
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
|
3213
3217
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
|
3214
3218
|
</xsl:if>
|
|
@@ -3252,7 +3256,7 @@
|
|
|
3252
3256
|
<xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
|
|
3253
3257
|
</xsl:when>
|
|
3254
3258
|
<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 -->
|
|
3259
|
+
<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
3260
|
</xsl:otherwise>
|
|
3257
3261
|
</xsl:choose>
|
|
3258
3262
|
|
|
@@ -3297,7 +3301,7 @@
|
|
|
3297
3301
|
<fo:table-row>
|
|
3298
3302
|
<fo:table-cell column-number="2">
|
|
3299
3303
|
<xsl:copy-of select="$table-preamble"/>
|
|
3300
|
-
<fo:block>
|
|
3304
|
+
<fo:block role="SKIP">
|
|
3301
3305
|
<xsl:call-template name="setTrackChangesStyles">
|
|
3302
3306
|
<xsl:with-param name="isAdded" select="$isAdded"/>
|
|
3303
3307
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
|
@@ -3340,7 +3344,7 @@
|
|
|
3340
3344
|
<xsl:param name="continued"/>
|
|
3341
3345
|
<xsl:if test="normalize-space() != ''">
|
|
3342
3346
|
|
|
3343
|
-
<fo:block xsl:use-attribute-sets="table-name-style">
|
|
3347
|
+
<fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
|
|
3344
3348
|
|
|
3345
3349
|
<xsl:call-template name="refine_table-name-style">
|
|
3346
3350
|
<xsl:with-param name="continued" select="$continued"/>
|
|
@@ -3725,8 +3729,8 @@
|
|
|
3725
3729
|
<xsl:template name="table-header-title">
|
|
3726
3730
|
<xsl:param name="cols-count"/>
|
|
3727
3731
|
<!-- row for title -->
|
|
3728
|
-
<fo:table-row>
|
|
3729
|
-
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
|
|
3732
|
+
<fo:table-row role="SKIP">
|
|
3733
|
+
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black" role="SKIP">
|
|
3730
3734
|
|
|
3731
3735
|
<xsl:call-template name="refine_table-header-title-style"/>
|
|
3732
3736
|
|
|
@@ -3735,7 +3739,7 @@
|
|
|
3735
3739
|
</xsl:apply-templates>
|
|
3736
3740
|
|
|
3737
3741
|
<xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
|
|
3738
|
-
<fo:block/>
|
|
3742
|
+
<fo:block role="SKIP"/>
|
|
3739
3743
|
</xsl:if>
|
|
3740
3744
|
|
|
3741
3745
|
</fo:table-cell>
|
|
@@ -3770,7 +3774,7 @@
|
|
|
3770
3774
|
<xsl:param name="colwidths"/>
|
|
3771
3775
|
<xsl:param name="colgroup"/>
|
|
3772
3776
|
|
|
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']"/>
|
|
3777
|
+
<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
3778
|
|
|
3775
3779
|
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
|
3776
3780
|
|
|
@@ -3843,6 +3847,7 @@
|
|
|
3843
3847
|
<xsl:apply-templates select="../*[local-name()='p']"/>
|
|
3844
3848
|
<xsl:apply-templates select="../*[local-name()='dl']"/>
|
|
3845
3849
|
<xsl:apply-templates select="../*[local-name()='note']"/>
|
|
3850
|
+
<xsl:apply-templates select="../*[local-name()='example']"/>
|
|
3846
3851
|
<xsl:apply-templates select="../*[local-name()='source']"/>
|
|
3847
3852
|
|
|
3848
3853
|
<xsl:variable name="isDisplayRowSeparator">
|
|
@@ -3851,7 +3856,7 @@
|
|
|
3851
3856
|
|
|
3852
3857
|
<!-- horizontal row separator -->
|
|
3853
3858
|
<xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
|
|
3854
|
-
<xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
|
|
3859
|
+
<xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
|
|
3855
3860
|
<fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
|
|
3856
3861
|
|
|
3857
3862
|
<xsl:call-template name="setBordersTableArray"/>
|
|
@@ -4045,7 +4050,7 @@
|
|
|
4045
4050
|
|
|
4046
4051
|
<xsl:call-template name="refine_table-header-cell-style"/>
|
|
4047
4052
|
|
|
4048
|
-
<fo:block>
|
|
4053
|
+
<fo:block role="SKIP">
|
|
4049
4054
|
<xsl:apply-templates/>
|
|
4050
4055
|
</fo:block>
|
|
4051
4056
|
</fo:table-cell>
|
|
@@ -4098,7 +4103,7 @@
|
|
|
4098
4103
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
|
4099
4104
|
</xsl:if>
|
|
4100
4105
|
|
|
4101
|
-
<fo:block>
|
|
4106
|
+
<fo:block role="SKIP">
|
|
4102
4107
|
|
|
4103
4108
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
4104
4109
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
|
@@ -4112,13 +4117,13 @@
|
|
|
4112
4117
|
</fo:table-cell>
|
|
4113
4118
|
</xsl:template> <!-- td -->
|
|
4114
4119
|
|
|
4115
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
|
|
4120
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
|
|
4116
4121
|
|
|
4117
4122
|
<fo:block xsl:use-attribute-sets="table-note-style">
|
|
4118
4123
|
|
|
4119
4124
|
<xsl:call-template name="refine_table-note-style"/>
|
|
4120
4125
|
|
|
4121
|
-
<!-- Table's note name (NOTE, for example) -->
|
|
4126
|
+
<!-- Table's note/example name (NOTE, for example) -->
|
|
4122
4127
|
<fo:inline xsl:use-attribute-sets="table-note-name-style">
|
|
4123
4128
|
|
|
4124
4129
|
<xsl:call-template name="refine_table-note-name-style"/>
|
|
@@ -4132,7 +4137,7 @@
|
|
|
4132
4137
|
|
|
4133
4138
|
</xsl:template> <!-- table/note -->
|
|
4134
4139
|
|
|
4135
|
-
<xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
|
|
4140
|
+
<xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
|
|
4136
4141
|
<xsl:apply-templates/>
|
|
4137
4142
|
</xsl:template>
|
|
4138
4143
|
|
|
@@ -4964,7 +4969,7 @@
|
|
|
4964
4969
|
-->
|
|
4965
4970
|
<fo:table-row>
|
|
4966
4971
|
<fo:table-cell number-columns-spanned="2">
|
|
4967
|
-
<fo:block>
|
|
4972
|
+
<fo:block role="SKIP">
|
|
4968
4973
|
<xsl:call-template name="note"/>
|
|
4969
4974
|
</fo:block>
|
|
4970
4975
|
</fo:table-cell>
|
|
@@ -5029,7 +5034,7 @@
|
|
|
5029
5034
|
|
|
5030
5035
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
5031
5036
|
|
|
5032
|
-
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
5037
|
+
<fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
|
|
5033
5038
|
<xsl:copy-of select="@id"/>
|
|
5034
5039
|
|
|
5035
5040
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
|
@@ -5059,7 +5064,7 @@
|
|
|
5059
5064
|
|
|
5060
5065
|
<xsl:call-template name="refine_dd-cell-style"/>
|
|
5061
5066
|
|
|
5062
|
-
<fo:block>
|
|
5067
|
+
<fo:block role="SKIP">
|
|
5063
5068
|
|
|
5064
5069
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
5065
5070
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
|
@@ -5201,10 +5206,15 @@
|
|
|
5201
5206
|
<!-- ========================= -->
|
|
5202
5207
|
<xsl:template match="*[local-name()='em']">
|
|
5203
5208
|
<fo:inline font-style="italic">
|
|
5209
|
+
<xsl:call-template name="refine_italic_style"/>
|
|
5204
5210
|
<xsl:apply-templates/>
|
|
5205
5211
|
</fo:inline>
|
|
5206
5212
|
</xsl:template>
|
|
5207
5213
|
|
|
5214
|
+
<xsl:template name="refine_italic_style">
|
|
5215
|
+
|
|
5216
|
+
</xsl:template>
|
|
5217
|
+
|
|
5208
5218
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
|
5209
5219
|
<xsl:param name="split_keep-within-line"/>
|
|
5210
5220
|
<fo:inline font-weight="bold">
|
|
@@ -5437,11 +5447,41 @@
|
|
|
5437
5447
|
|
|
5438
5448
|
<xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
|
|
5439
5449
|
<xsl:variable name="text" select="normalize-space(.)"/>
|
|
5440
|
-
<fo:inline font-size="75%">
|
|
5450
|
+
<fo:inline font-size="75%" role="SKIP">
|
|
5441
5451
|
<xsl:if test="string-length($text) > 0">
|
|
5442
|
-
<xsl:
|
|
5443
|
-
<xsl:
|
|
5444
|
-
|
|
5452
|
+
<xsl:variable name="smallCapsText">
|
|
5453
|
+
<xsl:call-template name="recursiveSmallCaps">
|
|
5454
|
+
<xsl:with-param name="text" select="$text"/>
|
|
5455
|
+
</xsl:call-template>
|
|
5456
|
+
</xsl:variable>
|
|
5457
|
+
<!-- merge neighboring fo:inline -->
|
|
5458
|
+
<xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
|
|
5459
|
+
<xsl:choose>
|
|
5460
|
+
<xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
|
|
5461
|
+
<xsl:when test="self::fo:inline and @font-size">
|
|
5462
|
+
<xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
|
|
5463
|
+
<!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
|
|
5464
|
+
<xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
|
|
5465
|
+
<xsl:variable name="next_text">
|
|
5466
|
+
<xsl:choose>
|
|
5467
|
+
<xsl:when test="$next_text_ = 0">99999999</xsl:when>
|
|
5468
|
+
<xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
|
|
5469
|
+
</xsl:choose>
|
|
5470
|
+
</xsl:variable>
|
|
5471
|
+
<!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
|
|
5472
|
+
<fo:inline>
|
|
5473
|
+
<xsl:copy-of select="@*"/>
|
|
5474
|
+
<xsl:copy-of select="./node()"/>
|
|
5475
|
+
<xsl:for-each select="following-sibling::node()[position() < $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
|
|
5476
|
+
<xsl:copy-of select="./node()"/>
|
|
5477
|
+
</xsl:for-each>
|
|
5478
|
+
</fo:inline>
|
|
5479
|
+
</xsl:when>
|
|
5480
|
+
<xsl:otherwise>
|
|
5481
|
+
<xsl:copy-of select="."/>
|
|
5482
|
+
</xsl:otherwise>
|
|
5483
|
+
</xsl:choose>
|
|
5484
|
+
</xsl:for-each>
|
|
5445
5485
|
</xsl:if>
|
|
5446
5486
|
</fo:inline>
|
|
5447
5487
|
</xsl:template>
|
|
@@ -5453,7 +5493,7 @@
|
|
|
5453
5493
|
<xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
|
|
5454
5494
|
<xsl:choose>
|
|
5455
5495
|
<xsl:when test="$char=$upperCase">
|
|
5456
|
-
<fo:inline font-size="{100 div 0.75}%">
|
|
5496
|
+
<fo:inline font-size="{100 div 0.75}%" role="SKIP">
|
|
5457
5497
|
<xsl:value-of select="$upperCase"/>
|
|
5458
5498
|
</fo:inline>
|
|
5459
5499
|
</xsl:when>
|
|
@@ -5615,6 +5655,10 @@
|
|
|
5615
5655
|
|
|
5616
5656
|
<xsl:when test="not(contains($text, $separator))">
|
|
5617
5657
|
<word>
|
|
5658
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
|
5659
|
+
<xsl:text>
|
|
5660
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
|
5661
|
+
</xsl:if>
|
|
5618
5662
|
<xsl:call-template name="enclose_text_in_tags">
|
|
5619
5663
|
<xsl:with-param name="text" select="normalize-space($text)"/>
|
|
5620
5664
|
<xsl:with-param name="tags" select="$tags"/>
|
|
@@ -5623,6 +5667,10 @@
|
|
|
5623
5667
|
</xsl:when>
|
|
5624
5668
|
<xsl:otherwise>
|
|
5625
5669
|
<word>
|
|
5670
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
|
5671
|
+
<xsl:text>
|
|
5672
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
|
5673
|
+
</xsl:if>
|
|
5626
5674
|
<xsl:call-template name="enclose_text_in_tags">
|
|
5627
5675
|
<xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
|
|
5628
5676
|
<xsl:with-param name="tags" select="$tags"/>
|
|
@@ -5806,6 +5854,10 @@
|
|
|
5806
5854
|
<xsl:template name="getSimpleTable">
|
|
5807
5855
|
<xsl:param name="id"/>
|
|
5808
5856
|
|
|
5857
|
+
<!-- <test0>
|
|
5858
|
+
<xsl:copy-of select="."/>
|
|
5859
|
+
</test0> -->
|
|
5860
|
+
|
|
5809
5861
|
<xsl:variable name="simple-table">
|
|
5810
5862
|
|
|
5811
5863
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
|
@@ -6851,7 +6903,7 @@
|
|
|
6851
6903
|
<fo:table-body>
|
|
6852
6904
|
<fo:table-row>
|
|
6853
6905
|
<fo:table-cell display-align="center">
|
|
6854
|
-
<fo:block xsl:use-attribute-sets="formula-stem-block-style">
|
|
6906
|
+
<fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
|
|
6855
6907
|
|
|
6856
6908
|
<xsl:call-template name="refine_formula-stem-block-style"/>
|
|
6857
6909
|
|
|
@@ -6859,7 +6911,10 @@
|
|
|
6859
6911
|
</fo:block>
|
|
6860
6912
|
</fo:table-cell>
|
|
6861
6913
|
<fo:table-cell display-align="center">
|
|
6862
|
-
<fo:block xsl:use-attribute-sets="formula-stem-number-style">
|
|
6914
|
+
<fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
|
|
6915
|
+
|
|
6916
|
+
<xsl:call-template name="refine_formula-stem-number-style"/>
|
|
6917
|
+
|
|
6863
6918
|
<xsl:apply-templates select="../*[local-name() = 'name']"/>
|
|
6864
6919
|
</fo:block>
|
|
6865
6920
|
</fo:table-cell>
|
|
@@ -8377,7 +8432,7 @@
|
|
|
8377
8432
|
<!-- second td with sourcecode -->
|
|
8378
8433
|
<xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
|
|
8379
8434
|
<fo:table-cell>
|
|
8380
|
-
<fo:block>
|
|
8435
|
+
<fo:block role="SKIP">
|
|
8381
8436
|
<xsl:apply-templates/>
|
|
8382
8437
|
</fo:block>
|
|
8383
8438
|
</fo:table-cell>
|
|
@@ -8864,7 +8919,7 @@
|
|
|
8864
8919
|
|
|
8865
8920
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
8866
8921
|
|
|
8867
|
-
<fo:block>
|
|
8922
|
+
<fo:block role="SKIP">
|
|
8868
8923
|
<xsl:apply-templates/>
|
|
8869
8924
|
</fo:block>
|
|
8870
8925
|
</fo:table-cell>
|
|
@@ -8886,7 +8941,7 @@
|
|
|
8886
8941
|
|
|
8887
8942
|
<xsl:call-template name="setTableCellAttributes"/>
|
|
8888
8943
|
|
|
8889
|
-
<fo:block>
|
|
8944
|
+
<fo:block role="SKIP">
|
|
8890
8945
|
<xsl:apply-templates/>
|
|
8891
8946
|
</fo:block>
|
|
8892
8947
|
</fo:table-cell>
|
|
@@ -9081,6 +9136,12 @@
|
|
|
9081
9136
|
|
|
9082
9137
|
</xsl:template>
|
|
9083
9138
|
|
|
9139
|
+
<xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
|
|
9140
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
|
9141
|
+
<xsl:apply-templates/>
|
|
9142
|
+
</fo:inline>
|
|
9143
|
+
</xsl:template>
|
|
9144
|
+
|
|
9084
9145
|
<xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
|
9085
9146
|
<xsl:param name="fo_element">block</xsl:param>
|
|
9086
9147
|
|
|
@@ -9655,6 +9716,50 @@
|
|
|
9655
9716
|
<xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
|
|
9656
9717
|
</xsl:choose>
|
|
9657
9718
|
</xsl:when>
|
|
9719
|
+
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
|
9720
|
+
|
|
9721
|
+
<xsl:variable name="label">
|
|
9722
|
+
|
|
9723
|
+
<xsl:variable name="type" select="../@type"/>
|
|
9724
|
+
|
|
9725
|
+
<xsl:variable name="style_prefix_">
|
|
9726
|
+
<xsl:if test="$type = 'roman'">
|
|
9727
|
+
<!-- Example: (i) -->
|
|
9728
|
+
</xsl:if>
|
|
9729
|
+
</xsl:variable>
|
|
9730
|
+
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
|
|
9731
|
+
|
|
9732
|
+
<xsl:variable name="style_suffix_">
|
|
9733
|
+
<xsl:choose>
|
|
9734
|
+
<xsl:when test="$type = 'arabic'">
|
|
9735
|
+
.
|
|
9736
|
+
</xsl:when>
|
|
9737
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
9738
|
+
.
|
|
9739
|
+
</xsl:when>
|
|
9740
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
9741
|
+
.
|
|
9742
|
+
</xsl:when>
|
|
9743
|
+
<xsl:when test="$type = 'roman'">
|
|
9744
|
+
.
|
|
9745
|
+
</xsl:when>
|
|
9746
|
+
<xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
|
|
9747
|
+
</xsl:choose>
|
|
9748
|
+
</xsl:variable>
|
|
9749
|
+
<xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
|
|
9750
|
+
|
|
9751
|
+
<xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
|
|
9752
|
+
<xsl:value-of select="$style_prefix"/>
|
|
9753
|
+
</xsl:if>
|
|
9754
|
+
<xsl:value-of select="@label"/>
|
|
9755
|
+
<xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
|
|
9756
|
+
<xsl:value-of select="$style_suffix"/>
|
|
9757
|
+
</xsl:if>
|
|
9758
|
+
</xsl:variable>
|
|
9759
|
+
|
|
9760
|
+
<xsl:value-of select="normalize-space($label)"/>
|
|
9761
|
+
|
|
9762
|
+
</xsl:when>
|
|
9658
9763
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
|
9659
9764
|
|
|
9660
9765
|
<!-- Example: for BSI <?list-start 2?> -->
|
|
@@ -9712,10 +9817,10 @@
|
|
|
9712
9817
|
<xsl:when test="$type = 'arabic'">
|
|
9713
9818
|
1.
|
|
9714
9819
|
</xsl:when>
|
|
9715
|
-
<xsl:when test="$type = 'alphabet'">
|
|
9820
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
|
9716
9821
|
a.
|
|
9717
9822
|
</xsl:when>
|
|
9718
|
-
<xsl:when test="$type = 'alphabet_upper'">
|
|
9823
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
|
9719
9824
|
A.
|
|
9720
9825
|
</xsl:when>
|
|
9721
9826
|
<xsl:when test="$type = 'roman'">
|
|
@@ -9846,7 +9951,7 @@
|
|
|
9846
9951
|
<xsl:call-template name="refine_list-item-style"/>
|
|
9847
9952
|
|
|
9848
9953
|
<fo:list-item-label end-indent="label-end()">
|
|
9849
|
-
<fo:block xsl:use-attribute-sets="list-item-label-style">
|
|
9954
|
+
<fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
|
|
9850
9955
|
|
|
9851
9956
|
<xsl:call-template name="refine_list-item-label-style"/>
|
|
9852
9957
|
|
|
@@ -9860,7 +9965,7 @@
|
|
|
9860
9965
|
</fo:block>
|
|
9861
9966
|
</fo:list-item-label>
|
|
9862
9967
|
<fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
|
|
9863
|
-
<fo:block>
|
|
9968
|
+
<fo:block role="SKIP">
|
|
9864
9969
|
|
|
9865
9970
|
<xsl:call-template name="refine_list-item-body-style"/>
|
|
9866
9971
|
|
|
@@ -10139,10 +10244,10 @@
|
|
|
10139
10244
|
<fo:table-body>
|
|
10140
10245
|
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
|
10141
10246
|
|
|
10142
|
-
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
|
10143
|
-
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
|
10144
|
-
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
|
10145
|
-
<fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
|
|
10247
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
|
|
10248
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
|
|
10249
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
|
|
10250
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
|
|
10146
10251
|
</fo:table-row>
|
|
10147
10252
|
<xsl:apply-templates/>
|
|
10148
10253
|
</fo:table-body>
|
|
@@ -10157,7 +10262,7 @@
|
|
|
10157
10262
|
|
|
10158
10263
|
<xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
|
|
10159
10264
|
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
|
10160
|
-
<fo:block><xsl:apply-templates/></fo:block>
|
|
10265
|
+
<fo:block role="SKIP"><xsl:apply-templates/></fo:block>
|
|
10161
10266
|
</fo:table-cell>
|
|
10162
10267
|
</xsl:template>
|
|
10163
10268
|
<!-- ============ -->
|
|
@@ -10456,7 +10561,7 @@
|
|
|
10456
10561
|
<xsl:for-each select="*[local-name() = 'tab']">
|
|
10457
10562
|
<xsl:variable name="current_id" select="generate-id()"/>
|
|
10458
10563
|
<fo:table-cell>
|
|
10459
|
-
<fo:block line-height-shift-adjustment="disregard-shifts">
|
|
10564
|
+
<fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
|
|
10460
10565
|
<xsl:call-template name="insert_basic_link">
|
|
10461
10566
|
<xsl:with-param name="element">
|
|
10462
10567
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
|
@@ -10474,7 +10579,7 @@
|
|
|
10474
10579
|
</xsl:for-each>
|
|
10475
10580
|
<!-- last column - for page numbers -->
|
|
10476
10581
|
<fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
|
|
10477
|
-
<fo:block>
|
|
10582
|
+
<fo:block role="SKIP">
|
|
10478
10583
|
<xsl:call-template name="insert_basic_link">
|
|
10479
10584
|
<xsl:with-param name="element">
|
|
10480
10585
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
== copyright-statement
|
|
2
|
+
=== {blank}
|
|
3
|
+
© {{ publisher }} {{ docyear }}
|
|
4
|
+
|
|
5
|
+
{% if unpublished %}
|
|
6
|
+
== license-statement
|
|
7
|
+
=== Warning for Drafts
|
|
8
|
+
|
|
9
|
+
This document is not a Ribose Standard. It is distributed for review and
|
|
10
|
+
comment, and is subject to change without notice and may not be referred to as
|
|
11
|
+
a Standard. Recipients of this draft are invited to submit, with their
|
|
12
|
+
comments, notification of any relevant patent rights of which they are aware
|
|
13
|
+
and to provide supporting documentation.
|
|
14
|
+
|
|
15
|
+
{% endif %}
|
|
16
|
+
|
|
17
|
+
== legal-statement
|
|
18
|
+
=== {blank}
|
|
19
|
+
All rights reserved. Unless otherwise specified, no part of this
|
|
20
|
+
publication may be reproduced or utilized otherwise in any form or by any
|
|
21
|
+
means, electronic or mechanical, including photocopying, or posting on the
|
|
22
|
+
internet or an intranet, without prior written permission. Permission can
|
|
23
|
+
be requested from the address below.
|
|
24
|
+
|
|
25
|
+
== feedback-statement
|
|
26
|
+
=== {blank}
|
|
27
|
+
[[boilerplate-name]]
|
|
28
|
+
[align="left"]
|
|
29
|
+
{% if publisher %}{{ publisher }}{% else %}Ribose Group Inc.{% endif %}
|
|
30
|
+
|
|
31
|
+
[[boilerplate-address]]
|
|
32
|
+
[align="left"]
|
|
33
|
+
{% if pub_address %}{{ pub_address }}{% else %}Suite 1, 8/F, New Henry House +
|
|
34
|
+
10 Ice House Street +
|
|
35
|
+
Central +
|
|
36
|
+
Hong Kong{% endif %} +
|
|
37
|
+
+
|
|
38
|
+
{% if pub_email %}{{ pub_email }}{% else %}copyright@ribose.com{% endif %} +
|
|
39
|
+
{% if pub_uri %}{{ pub_uri }}{% else %}https://www.ribose.com[www.ribose.com]{% endif %}
|
|
@@ -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>
|
data/metanorma.yml
CHANGED
|
@@ -15,6 +15,7 @@ html_monospacefont: '"Source Code Pro",monospace'
|
|
|
15
15
|
html_normalfontsize: "15px"
|
|
16
16
|
html_footnotefontsize: "0.9em"
|
|
17
17
|
html_monospacefontsize: "12px"
|
|
18
|
+
boilerplate: lib/metanorma/ribose/boilerplate.adoc
|
|
18
19
|
scripts: lib/isodoc/ribose/html/scripts.html
|
|
19
20
|
scripts_pdf: lib/isodoc/ribose/html/scripts.pdf.html
|
|
20
21
|
standardstylesheet: lib/isodoc/ribose/html/rsd.scss
|
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.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-
|
|
11
|
+
date: 2023-06-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-generic
|
|
@@ -212,7 +212,7 @@ files:
|
|
|
212
212
|
- lib/metanorma/ribose/basicdoc.rng
|
|
213
213
|
- lib/metanorma/ribose/biblio-standoc.rng
|
|
214
214
|
- lib/metanorma/ribose/biblio.rng
|
|
215
|
-
- lib/metanorma/ribose/boilerplate.
|
|
215
|
+
- lib/metanorma/ribose/boilerplate.adoc
|
|
216
216
|
- lib/metanorma/ribose/converter.rb
|
|
217
217
|
- lib/metanorma/ribose/isodoc.rng
|
|
218
218
|
- lib/metanorma/ribose/processor.rb
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<boilerplate>
|
|
2
|
-
<copyright-statement>
|
|
3
|
-
<clause>
|
|
4
|
-
<p> © {{ publisher }} {{ docyear }}</p>
|
|
5
|
-
</clause>
|
|
6
|
-
</copyright-statement>
|
|
7
|
-
{% if unpublished %}
|
|
8
|
-
<license-statement>
|
|
9
|
-
<clause>
|
|
10
|
-
<title>Warning for Drafts</title>
|
|
11
|
-
|
|
12
|
-
<p>This document is not a Ribose Standard. It is distributed for review and
|
|
13
|
-
comment, and is subject to change without notice and may not be referred to as
|
|
14
|
-
a Standard. Recipients of this draft are invited to submit, with their
|
|
15
|
-
comments, notification of any relevant patent rights of which they are aware
|
|
16
|
-
and to provide supporting documentation.
|
|
17
|
-
</p>
|
|
18
|
-
</clause>
|
|
19
|
-
</license-statement>
|
|
20
|
-
{% endif %}
|
|
21
|
-
<legal-statement>
|
|
22
|
-
<clause>
|
|
23
|
-
<p>All rights reserved. Unless otherwise specified, no part of this
|
|
24
|
-
publication may be reproduced or utilized otherwise in any form or by any
|
|
25
|
-
means, electronic or mechanical, including photocopying, or posting on the
|
|
26
|
-
internet or an intranet, without prior written permission. Permission can
|
|
27
|
-
be requested from the address below.
|
|
28
|
-
</p>
|
|
29
|
-
</clause>
|
|
30
|
-
</legal-statement>
|
|
31
|
-
<feedback-statement>
|
|
32
|
-
<clause>
|
|
33
|
-
<p align="left" id="boilerplate-name">
|
|
34
|
-
{% if publisher %}{{ publisher }}{% else %}Ribose Group Inc.{% endif %}
|
|
35
|
-
</p>
|
|
36
|
-
<p align="left" id="boilerplate-address">{% if pub_address %}{{ pub_address }}{% else %}Suite 1, 8/F, New Henry House<br/>
|
|
37
|
-
10 Ice House Street<br/>
|
|
38
|
-
Central<br/>
|
|
39
|
-
Hong Kong{% endif %}<br/>
|
|
40
|
-
<br />
|
|
41
|
-
{% if pub_email %}<link target="mailto:{{ pub_email }}">{{ pub_email }}</link>{% else %}<link target="mailto:copyright@ribose.com">copyright@ribose.com</link>{% endif %}<br />
|
|
42
|
-
{% if pub_uri %}<link target="{{ pub_uri }}">{{ pub_uri }}</link>{% else %}<link target="https://www.ribose.com">www.ribose.com</link>{% endif %}
|
|
43
|
-
</p>
|
|
44
|
-
</clause>
|
|
45
|
-
</feedback-statement>
|
|
46
|
-
</boilerplate>
|
|
47
|
-
|