metanorma-ribose 2.2.10 → 2.2.12
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 +299 -90
- data/lib/metanorma/ribose/boilerplate.adoc +39 -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: 2597a251bd77d5c5d9bca4f9901956a69bd0e4a04a99c81da66d587fbbb153dd
|
4
|
+
data.tar.gz: ec498d468745f70797c3b3460bfff9d155fa58061e49d41b6323ce09727a9bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5caa1261ccd6b4f0ca92013e60fe2bd0a8f7413cc187ffac8b1a1adbd000ad5c0f44736557cba729845dff04abb3f71480b6e5d370f5f7860fd9450439b00044
|
7
|
+
data.tar.gz: 219923a62718f199b9cd5d95548c1ac78dc8fba367f3871b4c5f63657d9245fe92e1cd6a7791c3d846e3d63ac3b6525cf294ee77a0ecf03dcecfe18bbd2e9cbc
|
@@ -2213,6 +2213,7 @@
|
|
2213
2213
|
</xsl:attribute-set>
|
2214
2214
|
|
2215
2215
|
<xsl:attribute-set name="figure-block-style">
|
2216
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
2216
2217
|
|
2217
2218
|
</xsl:attribute-set>
|
2218
2219
|
|
@@ -2230,6 +2231,7 @@
|
|
2230
2231
|
</xsl:attribute-set>
|
2231
2232
|
|
2232
2233
|
<xsl:attribute-set name="figure-name-style">
|
2234
|
+
<xsl:attribute name="role">Caption</xsl:attribute>
|
2233
2235
|
|
2234
2236
|
<xsl:attribute name="font-size">13pt</xsl:attribute>
|
2235
2237
|
<xsl:attribute name="font-weight">300</xsl:attribute>
|
@@ -2274,7 +2276,12 @@
|
|
2274
2276
|
</xsl:attribute-set> <!-- formula-stem-number-style -->
|
2275
2277
|
<!-- End Formula's styles -->
|
2276
2278
|
|
2279
|
+
<xsl:template name="refine_formula-stem-number-style">
|
2280
|
+
|
2281
|
+
</xsl:template>
|
2282
|
+
|
2277
2283
|
<xsl:attribute-set name="image-style">
|
2284
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
2278
2285
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
2279
2286
|
|
2280
2287
|
</xsl:attribute-set>
|
@@ -2576,6 +2583,13 @@
|
|
2576
2583
|
|
2577
2584
|
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
|
2578
2585
|
|
2586
|
+
<xsl:attribute-set name="bibitem-non-normative-list-item-style">
|
2587
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2588
|
+
|
2589
|
+
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
2590
|
+
|
2591
|
+
</xsl:attribute-set>
|
2592
|
+
|
2579
2593
|
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
|
2580
2594
|
<xsl:attribute-set name="bibitem-normative-list-body-style">
|
2581
2595
|
|
@@ -2794,13 +2808,13 @@
|
|
2794
2808
|
|
2795
2809
|
<xsl:template name="processPrefaceSectionsDefault_Contents">
|
2796
2810
|
<xsl:variable name="nodes_preface_">
|
2797
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
2811
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
2798
2812
|
<node id="{@id}"/>
|
2799
2813
|
</xsl:for-each>
|
2800
2814
|
</xsl:variable>
|
2801
2815
|
<xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
|
2802
2816
|
|
2803
|
-
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
|
2817
|
+
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
|
2804
2818
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2805
2819
|
|
2806
2820
|
<!-- process Section's title -->
|
@@ -2834,12 +2848,12 @@
|
|
2834
2848
|
<xsl:apply-templates select="." mode="contents"/>
|
2835
2849
|
</xsl:for-each>
|
2836
2850
|
|
2837
|
-
<xsl:for-each select="/*/*[local-name()='annex']">
|
2851
|
+
<!-- <xsl:for-each select="/*/*[local-name()='annex']">
|
2838
2852
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2839
2853
|
<xsl:apply-templates select="." mode="contents"/>
|
2840
|
-
</xsl:for-each>
|
2854
|
+
</xsl:for-each> -->
|
2841
2855
|
|
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]">
|
2856
|
+
<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
2857
|
<xsl:sort select="@displayorder" data-type="number"/>
|
2844
2858
|
<xsl:apply-templates select="." mode="contents"/>
|
2845
2859
|
</xsl:for-each>
|
@@ -2969,14 +2983,14 @@
|
|
2969
2983
|
<xsl:value-of select="$sep"/><xsl:value-of select="$zero_width_space"/>
|
2970
2984
|
</xsl:when>
|
2971
2985
|
<xsl:otherwise>
|
2972
|
-
<fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
|
2986
|
+
<fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
|
2973
2987
|
</xsl:otherwise>
|
2974
2988
|
</xsl:choose>
|
2975
2989
|
</xsl:for-each>
|
2976
2990
|
</xsl:when>
|
2977
2991
|
|
2978
2992
|
<xsl:otherwise>
|
2979
|
-
<fo:inline keep-together.within-line="always"><xsl:apply-templates/></fo:inline>
|
2993
|
+
<fo:inline keep-together.within-line="always" role="SKIP"><xsl:apply-templates/></fo:inline>
|
2980
2994
|
</xsl:otherwise>
|
2981
2995
|
|
2982
2996
|
</xsl:choose>
|
@@ -2986,7 +3000,7 @@
|
|
2986
3000
|
<!-- Preface boilerplate sections processing -->
|
2987
3001
|
<!-- ================================= -->
|
2988
3002
|
<xsl:template match="*[local-name()='copyright-statement']">
|
2989
|
-
<fo:block xsl:use-attribute-sets="copyright-statement-style">
|
3003
|
+
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
|
2990
3004
|
<xsl:apply-templates/>
|
2991
3005
|
</fo:block>
|
2992
3006
|
</xsl:template> <!-- copyright-statement -->
|
@@ -3159,7 +3173,7 @@
|
|
3159
3173
|
</xsl:choose>
|
3160
3174
|
</xsl:variable>
|
3161
3175
|
|
3162
|
-
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
3176
|
+
<fo:block-container xsl:use-attribute-sets="table-container-style" role="SKIP">
|
3163
3177
|
|
3164
3178
|
<xsl:call-template name="refine_table-container-style">
|
3165
3179
|
<xsl:with-param name="margin-side" select="$margin-side"/>
|
@@ -3297,7 +3311,7 @@
|
|
3297
3311
|
<fo:table-row>
|
3298
3312
|
<fo:table-cell column-number="2">
|
3299
3313
|
<xsl:copy-of select="$table-preamble"/>
|
3300
|
-
<fo:block>
|
3314
|
+
<fo:block role="SKIP">
|
3301
3315
|
<xsl:call-template name="setTrackChangesStyles">
|
3302
3316
|
<xsl:with-param name="isAdded" select="$isAdded"/>
|
3303
3317
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
@@ -3340,7 +3354,7 @@
|
|
3340
3354
|
<xsl:param name="continued"/>
|
3341
3355
|
<xsl:if test="normalize-space() != ''">
|
3342
3356
|
|
3343
|
-
<fo:block xsl:use-attribute-sets="table-name-style">
|
3357
|
+
<fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
|
3344
3358
|
|
3345
3359
|
<xsl:call-template name="refine_table-name-style">
|
3346
3360
|
<xsl:with-param name="continued" select="$continued"/>
|
@@ -3725,8 +3739,8 @@
|
|
3725
3739
|
<xsl:template name="table-header-title">
|
3726
3740
|
<xsl:param name="cols-count"/>
|
3727
3741
|
<!-- 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">
|
3742
|
+
<fo:table-row role="SKIP">
|
3743
|
+
<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
3744
|
|
3731
3745
|
<xsl:call-template name="refine_table-header-title-style"/>
|
3732
3746
|
|
@@ -3735,7 +3749,7 @@
|
|
3735
3749
|
</xsl:apply-templates>
|
3736
3750
|
|
3737
3751
|
<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/>
|
3752
|
+
<fo:block role="SKIP"/>
|
3739
3753
|
</xsl:if>
|
3740
3754
|
|
3741
3755
|
</fo:table-cell>
|
@@ -4046,7 +4060,7 @@
|
|
4046
4060
|
|
4047
4061
|
<xsl:call-template name="refine_table-header-cell-style"/>
|
4048
4062
|
|
4049
|
-
<fo:block>
|
4063
|
+
<fo:block role="SKIP">
|
4050
4064
|
<xsl:apply-templates/>
|
4051
4065
|
</fo:block>
|
4052
4066
|
</fo:table-cell>
|
@@ -4099,7 +4113,7 @@
|
|
4099
4113
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
4100
4114
|
</xsl:if>
|
4101
4115
|
|
4102
|
-
<fo:block>
|
4116
|
+
<fo:block role="SKIP">
|
4103
4117
|
|
4104
4118
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
4105
4119
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
@@ -4192,7 +4206,7 @@
|
|
4192
4206
|
</xsl:choose>
|
4193
4207
|
</xsl:variable>
|
4194
4208
|
<xsl:variable name="footnote_inline">
|
4195
|
-
<fo:inline>
|
4209
|
+
<fo:inline role="Reference">
|
4196
4210
|
|
4197
4211
|
<xsl:variable name="fn_styles">
|
4198
4212
|
<xsl:choose>
|
@@ -4215,7 +4229,7 @@
|
|
4215
4229
|
|
4216
4230
|
<xsl:call-template name="insert_basic_link">
|
4217
4231
|
<xsl:with-param name="element">
|
4218
|
-
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
4232
|
+
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}" role="Lbl">
|
4219
4233
|
<xsl:copy-of select="$current_fn_number_text"/>
|
4220
4234
|
</fo:basic-link>
|
4221
4235
|
</xsl:with-param>
|
@@ -4228,17 +4242,17 @@
|
|
4228
4242
|
<xsl:copy-of select="$footnote_inline"/>
|
4229
4243
|
</xsl:when>
|
4230
4244
|
<xsl:when test="$p_fn//fn[@gen_id = $gen_id] or normalize-space(@skip_footnote_body) = 'false'">
|
4231
|
-
<fo:footnote xsl:use-attribute-sets="fn-style">
|
4245
|
+
<fo:footnote xsl:use-attribute-sets="fn-style" role="SKIP">
|
4232
4246
|
<xsl:copy-of select="$footnote_inline"/>
|
4233
|
-
<fo:footnote-body>
|
4247
|
+
<fo:footnote-body role="Note">
|
4234
4248
|
|
4235
|
-
<fo:block-container xsl:use-attribute-sets="fn-container-body-style">
|
4249
|
+
<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
4236
4250
|
|
4237
|
-
<fo:block xsl:use-attribute-sets="fn-body-style">
|
4251
|
+
<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
|
4238
4252
|
|
4239
4253
|
<xsl:call-template name="refine_fn-body-style"/>
|
4240
4254
|
|
4241
|
-
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
4255
|
+
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
4242
4256
|
|
4243
4257
|
<xsl:call-template name="refine_fn-body-num-style"/>
|
4244
4258
|
|
@@ -4500,11 +4514,11 @@
|
|
4500
4514
|
</xsl:template>
|
4501
4515
|
|
4502
4516
|
<xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
|
4503
|
-
<fo:inline><xsl:value-of select="."/></fo:inline>
|
4517
|
+
<fo:inline role="SKIP"><xsl:value-of select="."/></fo:inline>
|
4504
4518
|
</xsl:template>
|
4505
4519
|
|
4506
4520
|
<xsl:template match="*[local-name()='fn']//*[local-name()='p']">
|
4507
|
-
<fo:inline>
|
4521
|
+
<fo:inline role="P">
|
4508
4522
|
<xsl:apply-templates/>
|
4509
4523
|
</fo:inline>
|
4510
4524
|
</xsl:template>
|
@@ -4519,7 +4533,7 @@
|
|
4519
4533
|
<xsl:variable name="isAdded" select="@added"/>
|
4520
4534
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
4521
4535
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
4522
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
4536
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
|
4523
4537
|
|
4524
4538
|
<xsl:call-template name="setBlockSpanAll"/>
|
4525
4539
|
|
@@ -4554,7 +4568,7 @@
|
|
4554
4568
|
<xsl:with-param name="isDeleted" select="$isDeleted"/>
|
4555
4569
|
</xsl:call-template>
|
4556
4570
|
|
4557
|
-
<fo:block-container margin-left="0mm">
|
4571
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
4558
4572
|
|
4559
4573
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4560
4574
|
|
@@ -4619,7 +4633,7 @@
|
|
4619
4633
|
|
4620
4634
|
<!-- a few components -->
|
4621
4635
|
<xsl:if test="$onlyOneComponent = 'false'">
|
4622
|
-
<fo:block>
|
4636
|
+
<fo:block role="SKIP">
|
4623
4637
|
|
4624
4638
|
<xsl:call-template name="refine_multicomponent_style"/>
|
4625
4639
|
|
@@ -4627,7 +4641,7 @@
|
|
4627
4641
|
<xsl:attribute name="margin-top">0</xsl:attribute>
|
4628
4642
|
</xsl:if>
|
4629
4643
|
|
4630
|
-
<fo:block>
|
4644
|
+
<fo:block role="SKIP">
|
4631
4645
|
|
4632
4646
|
<xsl:call-template name="refine_multicomponent_block_style"/>
|
4633
4647
|
|
@@ -4965,7 +4979,7 @@
|
|
4965
4979
|
-->
|
4966
4980
|
<fo:table-row>
|
4967
4981
|
<fo:table-cell number-columns-spanned="2">
|
4968
|
-
<fo:block>
|
4982
|
+
<fo:block role="SKIP">
|
4969
4983
|
<xsl:call-template name="note"/>
|
4970
4984
|
</fo:block>
|
4971
4985
|
</fo:table-cell>
|
@@ -5030,7 +5044,7 @@
|
|
5030
5044
|
|
5031
5045
|
<xsl:call-template name="refine_dt-cell-style"/>
|
5032
5046
|
|
5033
|
-
<fo:block xsl:use-attribute-sets="dt-block-style">
|
5047
|
+
<fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
|
5034
5048
|
<xsl:copy-of select="@id"/>
|
5035
5049
|
|
5036
5050
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -5060,7 +5074,7 @@
|
|
5060
5074
|
|
5061
5075
|
<xsl:call-template name="refine_dd-cell-style"/>
|
5062
5076
|
|
5063
|
-
<fo:block>
|
5077
|
+
<fo:block role="SKIP">
|
5064
5078
|
|
5065
5079
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
5066
5080
|
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
@@ -5202,10 +5216,15 @@
|
|
5202
5216
|
<!-- ========================= -->
|
5203
5217
|
<xsl:template match="*[local-name()='em']">
|
5204
5218
|
<fo:inline font-style="italic">
|
5219
|
+
<xsl:call-template name="refine_italic_style"/>
|
5205
5220
|
<xsl:apply-templates/>
|
5206
5221
|
</fo:inline>
|
5207
5222
|
</xsl:template>
|
5208
5223
|
|
5224
|
+
<xsl:template name="refine_italic_style">
|
5225
|
+
|
5226
|
+
</xsl:template>
|
5227
|
+
|
5209
5228
|
<xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
5210
5229
|
<xsl:param name="split_keep-within-line"/>
|
5211
5230
|
<fo:inline font-weight="bold">
|
@@ -5225,6 +5244,9 @@
|
|
5225
5244
|
<xsl:attribute name="color">black</xsl:attribute>
|
5226
5245
|
</xsl:if>
|
5227
5246
|
|
5247
|
+
<xsl:if test="ancestor::*['preferred']">
|
5248
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
5249
|
+
</xsl:if>
|
5228
5250
|
</xsl:template>
|
5229
5251
|
|
5230
5252
|
<xsl:template match="*[local-name()='padding']">
|
@@ -5438,11 +5460,41 @@
|
|
5438
5460
|
|
5439
5461
|
<xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
|
5440
5462
|
<xsl:variable name="text" select="normalize-space(.)"/>
|
5441
|
-
<fo:inline font-size="75%">
|
5463
|
+
<fo:inline font-size="75%" role="SKIP">
|
5442
5464
|
<xsl:if test="string-length($text) > 0">
|
5443
|
-
<xsl:
|
5444
|
-
<xsl:
|
5445
|
-
|
5465
|
+
<xsl:variable name="smallCapsText">
|
5466
|
+
<xsl:call-template name="recursiveSmallCaps">
|
5467
|
+
<xsl:with-param name="text" select="$text"/>
|
5468
|
+
</xsl:call-template>
|
5469
|
+
</xsl:variable>
|
5470
|
+
<!-- merge neighboring fo:inline -->
|
5471
|
+
<xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
|
5472
|
+
<xsl:choose>
|
5473
|
+
<xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
|
5474
|
+
<xsl:when test="self::fo:inline and @font-size">
|
5475
|
+
<xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
|
5476
|
+
<!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
|
5477
|
+
<xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
|
5478
|
+
<xsl:variable name="next_text">
|
5479
|
+
<xsl:choose>
|
5480
|
+
<xsl:when test="$next_text_ = 0">99999999</xsl:when>
|
5481
|
+
<xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
|
5482
|
+
</xsl:choose>
|
5483
|
+
</xsl:variable>
|
5484
|
+
<!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
|
5485
|
+
<fo:inline>
|
5486
|
+
<xsl:copy-of select="@*"/>
|
5487
|
+
<xsl:copy-of select="./node()"/>
|
5488
|
+
<xsl:for-each select="following-sibling::node()[position() < $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
|
5489
|
+
<xsl:copy-of select="./node()"/>
|
5490
|
+
</xsl:for-each>
|
5491
|
+
</fo:inline>
|
5492
|
+
</xsl:when>
|
5493
|
+
<xsl:otherwise>
|
5494
|
+
<xsl:copy-of select="."/>
|
5495
|
+
</xsl:otherwise>
|
5496
|
+
</xsl:choose>
|
5497
|
+
</xsl:for-each>
|
5446
5498
|
</xsl:if>
|
5447
5499
|
</fo:inline>
|
5448
5500
|
</xsl:template>
|
@@ -5454,7 +5506,7 @@
|
|
5454
5506
|
<xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
|
5455
5507
|
<xsl:choose>
|
5456
5508
|
<xsl:when test="$char=$upperCase">
|
5457
|
-
<fo:inline font-size="{100 div 0.75}%">
|
5509
|
+
<fo:inline font-size="{100 div 0.75}%" role="SKIP">
|
5458
5510
|
<xsl:value-of select="$upperCase"/>
|
5459
5511
|
</fo:inline>
|
5460
5512
|
</xsl:when>
|
@@ -5616,6 +5668,10 @@
|
|
5616
5668
|
|
5617
5669
|
<xsl:when test="not(contains($text, $separator))">
|
5618
5670
|
<word>
|
5671
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
5672
|
+
<xsl:text>
|
5673
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
5674
|
+
</xsl:if>
|
5619
5675
|
<xsl:call-template name="enclose_text_in_tags">
|
5620
5676
|
<xsl:with-param name="text" select="normalize-space($text)"/>
|
5621
5677
|
<xsl:with-param name="tags" select="$tags"/>
|
@@ -5624,6 +5680,10 @@
|
|
5624
5680
|
</xsl:when>
|
5625
5681
|
<xsl:otherwise>
|
5626
5682
|
<word>
|
5683
|
+
<xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
|
5684
|
+
<xsl:text>
|
5685
|
+
</xsl:text> <!-- to add distance between dt and dd -->
|
5686
|
+
</xsl:if>
|
5627
5687
|
<xsl:call-template name="enclose_text_in_tags">
|
5628
5688
|
<xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
|
5629
5689
|
<xsl:with-param name="tags" select="$tags"/>
|
@@ -5807,6 +5867,10 @@
|
|
5807
5867
|
<xsl:template name="getSimpleTable">
|
5808
5868
|
<xsl:param name="id"/>
|
5809
5869
|
|
5870
|
+
<!-- <test0>
|
5871
|
+
<xsl:copy-of select="."/>
|
5872
|
+
</test0> -->
|
5873
|
+
|
5810
5874
|
<xsl:variable name="simple-table">
|
5811
5875
|
|
5812
5876
|
<!-- Step 0. replace <br/> to <p>...</p> -->
|
@@ -6119,6 +6183,18 @@
|
|
6119
6183
|
</xsl:copy>
|
6120
6184
|
</xsl:template>
|
6121
6185
|
|
6186
|
+
<xsl:variable name="font_main_root_style">
|
6187
|
+
<root-style xsl:use-attribute-sets="root-style">
|
6188
|
+
</root-style>
|
6189
|
+
</xsl:variable>
|
6190
|
+
<xsl:variable name="font_main_root_style_font_family" select="xalan:nodeset($font_main_root_style)/root-style/@font-family"/>
|
6191
|
+
<xsl:variable name="font_main">
|
6192
|
+
<xsl:choose>
|
6193
|
+
<xsl:when test="contains($font_main_root_style_font_family, ',')"><xsl:value-of select="substring-before($font_main_root_style_font_family, ',')"/></xsl:when>
|
6194
|
+
<xsl:otherwise><xsl:value-of select="$font_main_root_style_font_family"/></xsl:otherwise>
|
6195
|
+
</xsl:choose>
|
6196
|
+
</xsl:variable>
|
6197
|
+
|
6122
6198
|
<xsl:template match="*[local-name()='th' or local-name()='td']" mode="simple-table-id">
|
6123
6199
|
<xsl:param name="id"/>
|
6124
6200
|
<xsl:copy>
|
@@ -6157,6 +6233,33 @@
|
|
6157
6233
|
|
6158
6234
|
<!-- td_text='<xsl:copy-of select="$td_text"/>' -->
|
6159
6235
|
|
6236
|
+
<xsl:variable name="words_with_width">
|
6237
|
+
<!-- calculate width for 'word' which contain text only (without formatting tags inside) -->
|
6238
|
+
<xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][not(*)]">
|
6239
|
+
<xsl:copy>
|
6240
|
+
<xsl:copy-of select="@*"/>
|
6241
|
+
<xsl:attribute name="width">
|
6242
|
+
<xsl:value-of select="java:org.metanorma.fop.Util.getStringWidth(., $font_main)"/> <!-- Example: 'Times New Roman' -->
|
6243
|
+
</xsl:attribute>
|
6244
|
+
<xsl:copy-of select="node()"/>
|
6245
|
+
</xsl:copy>
|
6246
|
+
</xsl:for-each>
|
6247
|
+
</xsl:variable>
|
6248
|
+
|
6249
|
+
<xsl:variable name="words_with_width_sorted">
|
6250
|
+
<xsl:for-each select="xalan:nodeset($words_with_width)//*[local-name() = 'word']">
|
6251
|
+
<xsl:sort select="@width" data-type="number" order="descending"/>
|
6252
|
+
<!-- select word maximal width only -->
|
6253
|
+
<xsl:if test="position() = 1">
|
6254
|
+
<xsl:copy-of select="."/>
|
6255
|
+
</xsl:if>
|
6256
|
+
</xsl:for-each>
|
6257
|
+
<!-- add 'word' with formatting tags inside -->
|
6258
|
+
<xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != ''][*]">
|
6259
|
+
<xsl:copy-of select="."/>
|
6260
|
+
</xsl:for-each>
|
6261
|
+
</xsl:variable>
|
6262
|
+
|
6160
6263
|
<xsl:variable name="words">
|
6161
6264
|
<xsl:for-each select=".//*[local-name() = 'image' or local-name() = 'stem']">
|
6162
6265
|
<word>
|
@@ -6164,9 +6267,12 @@
|
|
6164
6267
|
</word>
|
6165
6268
|
</xsl:for-each>
|
6166
6269
|
|
6167
|
-
<xsl:for-each select="xalan:nodeset($
|
6270
|
+
<xsl:for-each select="xalan:nodeset($words_with_width_sorted)//*[local-name() = 'word'][normalize-space() != '']">
|
6168
6271
|
<xsl:copy-of select="."/>
|
6169
6272
|
</xsl:for-each>
|
6273
|
+
<!-- <xsl:for-each select="xalan:nodeset($td_text)//*[local-name() = 'word'][normalize-space() != '']">
|
6274
|
+
<xsl:copy-of select="."/>
|
6275
|
+
</xsl:for-each> -->
|
6170
6276
|
|
6171
6277
|
</xsl:variable>
|
6172
6278
|
|
@@ -6627,10 +6733,10 @@
|
|
6627
6733
|
<xsl:copy>
|
6628
6734
|
<xsl:apply-templates select="@*" mode="mathml"/>
|
6629
6735
|
<xsl:if test="not(@lspace)">
|
6630
|
-
<xsl:attribute name="lspace">0.
|
6736
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
6631
6737
|
</xsl:if>
|
6632
|
-
<xsl:if test="not(@rspace)">
|
6633
|
-
<xsl:attribute name="rspace">0.
|
6738
|
+
<xsl:if test="not(@rspace) and not(following-sibling::*[1][self::mathml:mo and normalize-space(text()) = '|'])">
|
6739
|
+
<xsl:attribute name="rspace">0.2em</xsl:attribute>
|
6634
6740
|
</xsl:if>
|
6635
6741
|
<xsl:apply-templates mode="mathml"/>
|
6636
6742
|
</xsl:copy>
|
@@ -6647,6 +6753,27 @@
|
|
6647
6753
|
</xsl:copy>
|
6648
6754
|
</xsl:template>
|
6649
6755
|
|
6756
|
+
<!-- increase space before '(' -->
|
6757
|
+
<xsl:template match="mathml:mo[normalize-space(text()) = '(']" mode="mathml">
|
6758
|
+
<xsl:copy>
|
6759
|
+
<xsl:apply-templates select="@*" mode="mathml"/>
|
6760
|
+
<xsl:if test="(preceding-sibling::* and not(preceding-sibling::*[1][self::mathml:mo])) or (../preceding-sibling::* and not(../preceding-sibling::*[1][self::mathml:mo]))">
|
6761
|
+
<xsl:if test="not(@lspace)">
|
6762
|
+
<xsl:attribute name="lspace">0.4em</xsl:attribute>
|
6763
|
+
<xsl:choose>
|
6764
|
+
<xsl:when test="preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
|
6765
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
6766
|
+
</xsl:when>
|
6767
|
+
<xsl:when test="../preceding-sibling::*[1][self::mathml:mi or self::mathml:mstyle]">
|
6768
|
+
<xsl:attribute name="lspace">0.2em</xsl:attribute>
|
6769
|
+
</xsl:when>
|
6770
|
+
</xsl:choose>
|
6771
|
+
</xsl:if>
|
6772
|
+
</xsl:if>
|
6773
|
+
<xsl:apply-templates mode="mathml"/>
|
6774
|
+
</xsl:copy>
|
6775
|
+
</xsl:template>
|
6776
|
+
|
6650
6777
|
<!-- Examples:
|
6651
6778
|
<stem type="AsciiMath">x = 1</stem>
|
6652
6779
|
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
@@ -6806,7 +6933,7 @@
|
|
6806
6933
|
<!-- formula -->
|
6807
6934
|
<!-- ====== -->
|
6808
6935
|
<xsl:template match="*[local-name() = 'formula']" name="formula">
|
6809
|
-
<fo:block-container margin-left="0mm">
|
6936
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
6810
6937
|
<xsl:if test="parent::*[local-name() = 'note']">
|
6811
6938
|
<xsl:attribute name="margin-left">
|
6812
6939
|
<xsl:choose>
|
@@ -6816,7 +6943,7 @@
|
|
6816
6943
|
</xsl:attribute>
|
6817
6944
|
|
6818
6945
|
</xsl:if>
|
6819
|
-
<fo:block-container margin-left="0mm">
|
6946
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
6820
6947
|
<fo:block id="{@id}">
|
6821
6948
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/> <!-- formula's number will be process in 'stem' template -->
|
6822
6949
|
</fo:block>
|
@@ -6852,7 +6979,7 @@
|
|
6852
6979
|
<fo:table-body>
|
6853
6980
|
<fo:table-row>
|
6854
6981
|
<fo:table-cell display-align="center">
|
6855
|
-
<fo:block xsl:use-attribute-sets="formula-stem-block-style">
|
6982
|
+
<fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
|
6856
6983
|
|
6857
6984
|
<xsl:call-template name="refine_formula-stem-block-style"/>
|
6858
6985
|
|
@@ -6860,7 +6987,10 @@
|
|
6860
6987
|
</fo:block>
|
6861
6988
|
</fo:table-cell>
|
6862
6989
|
<fo:table-cell display-align="center">
|
6863
|
-
<fo:block xsl:use-attribute-sets="formula-stem-number-style">
|
6990
|
+
<fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
|
6991
|
+
|
6992
|
+
<xsl:call-template name="refine_formula-stem-number-style"/>
|
6993
|
+
|
6864
6994
|
<xsl:apply-templates select="../*[local-name() = 'name']"/>
|
6865
6995
|
</fo:block>
|
6866
6996
|
</fo:table-cell>
|
@@ -6893,13 +7023,13 @@
|
|
6893
7023
|
|
6894
7024
|
<xsl:template match="*[local-name() = 'note']" name="note">
|
6895
7025
|
|
6896
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
|
7026
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
|
6897
7027
|
|
6898
7028
|
<xsl:call-template name="setBlockSpanAll"/>
|
6899
7029
|
|
6900
7030
|
<xsl:call-template name="refine_note-style"/>
|
6901
7031
|
|
6902
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
7032
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
6903
7033
|
|
6904
7034
|
<fo:block>
|
6905
7035
|
|
@@ -7065,12 +7195,13 @@
|
|
7065
7195
|
|
7066
7196
|
<xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']">
|
7067
7197
|
<xsl:if test="normalize-space() != ''">
|
7068
|
-
<xsl:variable name="level">
|
7198
|
+
<!-- <xsl:variable name="level">
|
7069
7199
|
<xsl:call-template name="getLevelTermName"/>
|
7070
7200
|
</xsl:variable>
|
7071
7201
|
<fo:inline role="H{$level}">
|
7072
|
-
<xsl:apply-templates/>
|
7073
|
-
</fo:inline>
|
7202
|
+
<xsl:apply-templates />
|
7203
|
+
</fo:inline> -->
|
7204
|
+
<xsl:apply-templates/>
|
7074
7205
|
</xsl:if>
|
7075
7206
|
</xsl:template>
|
7076
7207
|
<!-- ====== -->
|
@@ -7097,7 +7228,7 @@
|
|
7097
7228
|
<!-- Example: Dimensions in millimeters -->
|
7098
7229
|
<xsl:apply-templates select="*[local-name() = 'note'][@type = 'units']"/>
|
7099
7230
|
|
7100
|
-
<fo:block xsl:use-attribute-sets="figure-style">
|
7231
|
+
<fo:block xsl:use-attribute-sets="figure-style" role="SKIP">
|
7101
7232
|
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'note' and @type = 'units')]"/>
|
7102
7233
|
</fo:block>
|
7103
7234
|
<xsl:for-each select="*[local-name() = 'note'][not(@type = 'units')]">
|
@@ -8233,7 +8364,7 @@
|
|
8233
8364
|
</xsl:when>
|
8234
8365
|
|
8235
8366
|
<xsl:otherwise>
|
8236
|
-
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
|
8367
|
+
<fo:block-container xsl:use-attribute-sets="sourcecode-container-style" role="SKIP">
|
8237
8368
|
|
8238
8369
|
<xsl:if test="not(ancestor::*[local-name() = 'li']) or ancestor::*[local-name() = 'example']">
|
8239
8370
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
@@ -8254,7 +8385,7 @@
|
|
8254
8385
|
</xsl:attribute>
|
8255
8386
|
|
8256
8387
|
</xsl:if>
|
8257
|
-
<fo:block-container margin-left="0mm">
|
8388
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
8258
8389
|
|
8259
8390
|
<xsl:apply-templates select="*[local-name()='name']"/> <!-- show sourcecode's name BEFORE content -->
|
8260
8391
|
|
@@ -8378,7 +8509,7 @@
|
|
8378
8509
|
<!-- second td with sourcecode -->
|
8379
8510
|
<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'] -->
|
8380
8511
|
<fo:table-cell>
|
8381
|
-
<fo:block>
|
8512
|
+
<fo:block role="SKIP">
|
8382
8513
|
<xsl:apply-templates/>
|
8383
8514
|
</fo:block>
|
8384
8515
|
</fo:table-cell>
|
@@ -8800,11 +8931,11 @@
|
|
8800
8931
|
<!-- requirement, recommendation, permission table -->
|
8801
8932
|
<!-- ========== -->
|
8802
8933
|
<xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
8803
|
-
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
|
8934
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt" role="SKIP">
|
8804
8935
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
8805
8936
|
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
|
8806
8937
|
</xsl:if>
|
8807
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
8938
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
8808
8939
|
<fo:table id="{@id}" table-layout="fixed" width="100%"> <!-- border="1pt solid black" -->
|
8809
8940
|
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
8810
8941
|
<!-- <xsl:attribute name="border">0.5pt solid black</xsl:attribute> -->
|
@@ -8865,7 +8996,7 @@
|
|
8865
8996
|
|
8866
8997
|
<xsl:call-template name="setTableCellAttributes"/>
|
8867
8998
|
|
8868
|
-
<fo:block>
|
8999
|
+
<fo:block role="SKIP">
|
8869
9000
|
<xsl:apply-templates/>
|
8870
9001
|
</fo:block>
|
8871
9002
|
</fo:table-cell>
|
@@ -8887,7 +9018,7 @@
|
|
8887
9018
|
|
8888
9019
|
<xsl:call-template name="setTableCellAttributes"/>
|
8889
9020
|
|
8890
|
-
<fo:block>
|
9021
|
+
<fo:block role="SKIP">
|
8891
9022
|
<xsl:apply-templates/>
|
8892
9023
|
</fo:block>
|
8893
9024
|
</fo:table-cell>
|
@@ -8966,7 +9097,7 @@
|
|
8966
9097
|
-->
|
8967
9098
|
<xsl:template match="*[local-name() = 'example']">
|
8968
9099
|
|
8969
|
-
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style">
|
9100
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
|
8970
9101
|
|
8971
9102
|
<xsl:call-template name="setBlockSpanAll"/>
|
8972
9103
|
|
@@ -8977,7 +9108,7 @@
|
|
8977
9108
|
inline
|
8978
9109
|
</xsl:variable>
|
8979
9110
|
|
8980
|
-
<fo:block-container margin-left="0mm">
|
9111
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
8981
9112
|
|
8982
9113
|
<xsl:choose>
|
8983
9114
|
|
@@ -8990,8 +9121,8 @@
|
|
8990
9121
|
</xsl:apply-templates>
|
8991
9122
|
</fo:block>
|
8992
9123
|
|
8993
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style">
|
8994
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
9124
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
9125
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
8995
9126
|
<xsl:apply-templates select="node()[not(local-name() = 'name')]">
|
8996
9127
|
<xsl:with-param name="fo_element" select="$fo_element"/>
|
8997
9128
|
</xsl:apply-templates>
|
@@ -9044,8 +9175,8 @@
|
|
9044
9175
|
|
9045
9176
|
<xsl:if test="*[not(local-name() = 'name')][position() > 1]">
|
9046
9177
|
<!-- display further elements in blocks -->
|
9047
|
-
<fo:block-container xsl:use-attribute-sets="example-body-style">
|
9048
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
9178
|
+
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
|
9179
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
9049
9180
|
<xsl:apply-templates select="*[not(local-name() = 'name')][position() > 1]">
|
9050
9181
|
<xsl:with-param name="fo_element" select="'block'"/>
|
9051
9182
|
</xsl:apply-templates>
|
@@ -9103,7 +9234,7 @@
|
|
9103
9234
|
</xsl:variable>
|
9104
9235
|
<xsl:choose>
|
9105
9236
|
<xsl:when test="starts-with(normalize-space($element), 'block')">
|
9106
|
-
<fo:block-container>
|
9237
|
+
<fo:block-container role="SKIP">
|
9107
9238
|
<xsl:if test="ancestor::*[local-name() = 'li'] and contains(normalize-space($fo_element), 'block')">
|
9108
9239
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
9109
9240
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -9244,7 +9375,7 @@
|
|
9244
9375
|
<!-- author -->
|
9245
9376
|
<!-- ====== -->
|
9246
9377
|
<xsl:template match="*[local-name() = 'quote']">
|
9247
|
-
<fo:block-container margin-left="0mm">
|
9378
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
9248
9379
|
|
9249
9380
|
<xsl:call-template name="setBlockSpanAll"/>
|
9250
9381
|
|
@@ -9254,12 +9385,12 @@
|
|
9254
9385
|
</xsl:if>
|
9255
9386
|
</xsl:if>
|
9256
9387
|
|
9257
|
-
<fo:block-container margin-left="0mm">
|
9258
|
-
<fo:block-container xsl:use-attribute-sets="quote-style">
|
9388
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
9389
|
+
<fo:block-container xsl:use-attribute-sets="quote-style" role="SKIP">
|
9259
9390
|
|
9260
9391
|
<xsl:call-template name="refine_quote-style"/>
|
9261
9392
|
|
9262
|
-
<fo:block-container margin-left="0mm" margin-right="0mm">
|
9393
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
9263
9394
|
<fo:block role="BlockQuote">
|
9264
9395
|
<xsl:apply-templates select="./node()[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
9265
9396
|
</fo:block>
|
@@ -9413,10 +9544,10 @@
|
|
9413
9544
|
|
9414
9545
|
<xsl:choose>
|
9415
9546
|
<xsl:when test="$lang = 'zh'">
|
9416
|
-
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
9547
|
+
<fo:inline role="SKIP"><xsl:value-of select="$tab_zh"/></fo:inline>
|
9417
9548
|
</xsl:when>
|
9418
9549
|
<xsl:when test="../../@inline-header = 'true'">
|
9419
|
-
<fo:inline font-size="90%">
|
9550
|
+
<fo:inline font-size="90%" role="SKIP">
|
9420
9551
|
<xsl:call-template name="insertNonBreakSpaces">
|
9421
9552
|
<xsl:with-param name="count" select="$padding-right"/>
|
9422
9553
|
</xsl:call-template>
|
@@ -9424,7 +9555,7 @@
|
|
9424
9555
|
</xsl:when>
|
9425
9556
|
<xsl:otherwise>
|
9426
9557
|
<xsl:variable name="direction"><xsl:if test="$lang = 'ar'"><xsl:value-of select="$RLM"/></xsl:if></xsl:variable>
|
9427
|
-
<fo:inline padding-right="{$padding-right}mm"><xsl:value-of select="$direction"/></fo:inline>
|
9558
|
+
<fo:inline padding-right="{$padding-right}mm" role="SKIP"><xsl:value-of select="$direction"/></fo:inline>
|
9428
9559
|
</xsl:otherwise>
|
9429
9560
|
</xsl:choose>
|
9430
9561
|
|
@@ -9454,12 +9585,12 @@
|
|
9454
9585
|
<fo:block font-size="{normalize-space($font-size)}" role="H{$levelTerm}" xsl:use-attribute-sets="preferred-block-style">
|
9455
9586
|
|
9456
9587
|
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'preferred'])"> <!-- if first preffered in term, then display term's name -->
|
9457
|
-
<fo:block xsl:use-attribute-sets="term-name-style">
|
9588
|
+
<fo:block xsl:use-attribute-sets="term-name-style" role="SKIP">
|
9458
9589
|
<xsl:apply-templates select="ancestor::*[local-name() = 'term'][1]/*[local-name() = 'name']"/>
|
9459
9590
|
</fo:block>
|
9460
9591
|
</xsl:if>
|
9461
9592
|
|
9462
|
-
<fo:block xsl:use-attribute-sets="preferred-term-style">
|
9593
|
+
<fo:block xsl:use-attribute-sets="preferred-term-style" role="SKIP">
|
9463
9594
|
<xsl:call-template name="setStyle_preferred"/>
|
9464
9595
|
<xsl:apply-templates/>
|
9465
9596
|
</fo:block>
|
@@ -9500,7 +9631,7 @@
|
|
9500
9631
|
<!-- definition -->
|
9501
9632
|
<!-- ========== -->
|
9502
9633
|
<xsl:template match="*[local-name() = 'definition']">
|
9503
|
-
<fo:block xsl:use-attribute-sets="definition-style">
|
9634
|
+
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
|
9504
9635
|
<xsl:apply-templates/>
|
9505
9636
|
</fo:block>
|
9506
9637
|
</xsl:template>
|
@@ -9548,6 +9679,10 @@
|
|
9548
9679
|
|
9549
9680
|
<xsl:template match="*[local-name() = 'clause']">
|
9550
9681
|
<fo:block>
|
9682
|
+
<xsl:if test="parent::*[local-name() = 'copyright-statement']">
|
9683
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
9684
|
+
</xsl:if>
|
9685
|
+
|
9551
9686
|
<xsl:call-template name="setId"/>
|
9552
9687
|
|
9553
9688
|
<xsl:call-template name="setBlockSpanAll"/>
|
@@ -9663,7 +9798,48 @@
|
|
9663
9798
|
</xsl:choose>
|
9664
9799
|
</xsl:when>
|
9665
9800
|
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
|
9666
|
-
|
9801
|
+
|
9802
|
+
<xsl:variable name="label">
|
9803
|
+
|
9804
|
+
<xsl:variable name="type" select="../@type"/>
|
9805
|
+
|
9806
|
+
<xsl:variable name="style_prefix_">
|
9807
|
+
<xsl:if test="$type = 'roman'">
|
9808
|
+
<!-- Example: (i) -->
|
9809
|
+
</xsl:if>
|
9810
|
+
</xsl:variable>
|
9811
|
+
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
|
9812
|
+
|
9813
|
+
<xsl:variable name="style_suffix_">
|
9814
|
+
<xsl:choose>
|
9815
|
+
<xsl:when test="$type = 'arabic'">
|
9816
|
+
.
|
9817
|
+
</xsl:when>
|
9818
|
+
<xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
|
9819
|
+
.
|
9820
|
+
</xsl:when>
|
9821
|
+
<xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
|
9822
|
+
.
|
9823
|
+
</xsl:when>
|
9824
|
+
<xsl:when test="$type = 'roman'">
|
9825
|
+
.
|
9826
|
+
</xsl:when>
|
9827
|
+
<xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
|
9828
|
+
</xsl:choose>
|
9829
|
+
</xsl:variable>
|
9830
|
+
<xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
|
9831
|
+
|
9832
|
+
<xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
|
9833
|
+
<xsl:value-of select="$style_prefix"/>
|
9834
|
+
</xsl:if>
|
9835
|
+
<xsl:value-of select="@label"/>
|
9836
|
+
<xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
|
9837
|
+
<xsl:value-of select="$style_suffix"/>
|
9838
|
+
</xsl:if>
|
9839
|
+
</xsl:variable>
|
9840
|
+
|
9841
|
+
<xsl:value-of select="normalize-space($label)"/>
|
9842
|
+
|
9667
9843
|
</xsl:when>
|
9668
9844
|
<xsl:otherwise> <!-- for ordered lists 'ol' -->
|
9669
9845
|
|
@@ -9745,7 +9921,7 @@
|
|
9745
9921
|
<xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
9746
9922
|
<xsl:choose>
|
9747
9923
|
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
9748
|
-
<fo:block-container>
|
9924
|
+
<fo:block-container role="SKIP">
|
9749
9925
|
<xsl:attribute name="margin-left">
|
9750
9926
|
<xsl:choose>
|
9751
9927
|
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
|
@@ -9755,7 +9931,7 @@
|
|
9755
9931
|
|
9756
9932
|
<xsl:call-template name="refine_list_container_style"/>
|
9757
9933
|
|
9758
|
-
<fo:block-container margin-left="0mm">
|
9934
|
+
<fo:block-container margin-left="0mm" role="SKIP">
|
9759
9935
|
<fo:block>
|
9760
9936
|
<xsl:apply-templates select="." mode="list"/>
|
9761
9937
|
</fo:block>
|
@@ -9764,7 +9940,7 @@
|
|
9764
9940
|
</xsl:when>
|
9765
9941
|
<xsl:otherwise>
|
9766
9942
|
|
9767
|
-
<fo:block>
|
9943
|
+
<fo:block role="SKIP">
|
9768
9944
|
<xsl:apply-templates select="." mode="list"/>
|
9769
9945
|
</fo:block>
|
9770
9946
|
|
@@ -9856,7 +10032,7 @@
|
|
9856
10032
|
<xsl:call-template name="refine_list-item-style"/>
|
9857
10033
|
|
9858
10034
|
<fo:list-item-label end-indent="label-end()">
|
9859
|
-
<fo:block xsl:use-attribute-sets="list-item-label-style">
|
10035
|
+
<fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
|
9860
10036
|
|
9861
10037
|
<xsl:call-template name="refine_list-item-label-style"/>
|
9862
10038
|
|
@@ -9870,7 +10046,7 @@
|
|
9870
10046
|
</fo:block>
|
9871
10047
|
</fo:list-item-label>
|
9872
10048
|
<fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
|
9873
|
-
<fo:block>
|
10049
|
+
<fo:block role="SKIP">
|
9874
10050
|
|
9875
10051
|
<xsl:call-template name="refine_list-item-body-style"/>
|
9876
10052
|
|
@@ -10149,10 +10325,10 @@
|
|
10149
10325
|
<fo:table-body>
|
10150
10326
|
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
10151
10327
|
|
10152
|
-
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
10153
|
-
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
10154
|
-
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
10155
|
-
<fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
|
10328
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
|
10329
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
|
10330
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
|
10331
|
+
<fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
|
10156
10332
|
</fo:table-row>
|
10157
10333
|
<xsl:apply-templates/>
|
10158
10334
|
</fo:table-body>
|
@@ -10167,7 +10343,7 @@
|
|
10167
10343
|
|
10168
10344
|
<xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
|
10169
10345
|
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
10170
|
-
<fo:block><xsl:apply-templates/></fo:block>
|
10346
|
+
<fo:block role="SKIP"><xsl:apply-templates/></fo:block>
|
10171
10347
|
</fo:table-cell>
|
10172
10348
|
</xsl:template>
|
10173
10349
|
<!-- ============ -->
|
@@ -10182,7 +10358,10 @@
|
|
10182
10358
|
<!-- Reference sections (Normative References and Bibliography) -->
|
10183
10359
|
<!-- ========================================================== -->
|
10184
10360
|
<xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
|
10185
|
-
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"
|
10361
|
+
<xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
|
10362
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/>
|
10363
|
+
|
10364
|
+
</xsl:template>
|
10186
10365
|
<!-- don't display bibitem with @id starts with '_hidden', that was introduced for references integrity -->
|
10187
10366
|
<xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
|
10188
10367
|
|
@@ -10231,6 +10410,7 @@
|
|
10231
10410
|
|
10232
10411
|
<!-- Bibliography (non-normative references) -->
|
10233
10412
|
<xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
10413
|
+
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
|
10234
10414
|
|
10235
10415
|
<fo:list-block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-style">
|
10236
10416
|
<fo:list-item>
|
@@ -10255,6 +10435,35 @@
|
|
10255
10435
|
|
10256
10436
|
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
|
10257
10437
|
|
10438
|
+
<xsl:template name="insertListItem_Bibitem">
|
10439
|
+
<xsl:choose>
|
10440
|
+
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
|
10441
|
+
<xsl:otherwise>
|
10442
|
+
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
|
10443
|
+
<fo:list-item-label end-indent="label-end()">
|
10444
|
+
<fo:block role="SKIP">
|
10445
|
+
<fo:inline role="SKIP">
|
10446
|
+
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
|
10447
|
+
<xsl:with-param name="biblio_tag_part">first</xsl:with-param>
|
10448
|
+
</xsl:apply-templates>
|
10449
|
+
</fo:inline>
|
10450
|
+
</fo:block>
|
10451
|
+
</fo:list-item-label>
|
10452
|
+
<fo:list-item-body start-indent="body-start()">
|
10453
|
+
<fo:block xsl:use-attribute-sets="bibitem-non-normative-list-body-style" role="SKIP">
|
10454
|
+
<xsl:call-template name="processBibitem">
|
10455
|
+
<xsl:with-param name="biblio_tag_part">last</xsl:with-param>
|
10456
|
+
</xsl:call-template>
|
10457
|
+
</fo:block>
|
10458
|
+
</fo:list-item-body>
|
10459
|
+
</fo:list-item>
|
10460
|
+
</xsl:otherwise>
|
10461
|
+
</xsl:choose>
|
10462
|
+
<xsl:apply-templates select="following-sibling::*[1][local-name() = 'bibitem']">
|
10463
|
+
<xsl:with-param name="skip">false</xsl:with-param>
|
10464
|
+
</xsl:apply-templates>
|
10465
|
+
</xsl:template>
|
10466
|
+
|
10258
10467
|
<xsl:template name="processBibitem">
|
10259
10468
|
<xsl:param name="biblio_tag_part">both</xsl:param>
|
10260
10469
|
|
@@ -10466,7 +10675,7 @@
|
|
10466
10675
|
<xsl:for-each select="*[local-name() = 'tab']">
|
10467
10676
|
<xsl:variable name="current_id" select="generate-id()"/>
|
10468
10677
|
<fo:table-cell>
|
10469
|
-
<fo:block line-height-shift-adjustment="disregard-shifts">
|
10678
|
+
<fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
|
10470
10679
|
<xsl:call-template name="insert_basic_link">
|
10471
10680
|
<xsl:with-param name="element">
|
10472
10681
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
@@ -10484,7 +10693,7 @@
|
|
10484
10693
|
</xsl:for-each>
|
10485
10694
|
<!-- last column - for page numbers -->
|
10486
10695
|
<fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
|
10487
|
-
<fo:block>
|
10696
|
+
<fo:block role="SKIP">
|
10488
10697
|
<xsl:call-template name="insert_basic_link">
|
10489
10698
|
<xsl:with-param name="element">
|
10490
10699
|
<fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
|
@@ -10588,7 +10797,7 @@
|
|
10588
10797
|
|
10589
10798
|
<xsl:call-template name="setBlockSpanAll"/>
|
10590
10799
|
|
10591
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
10800
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
|
10592
10801
|
|
10593
10802
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
10594
10803
|
<xsl:call-template name="displayAdmonitionName"/>
|
@@ -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 %}
|
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.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: 2023-
|
11
|
+
date: 2023-07-07 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
|
-
|