metanorma-un 0.10.9 → 0.10.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d5f21ba4f476f4f4eb4c4ea273724746e9d66a690c8f6ded9bbc8115c2268cf
4
- data.tar.gz: b4d20e7df2a817f278499fd1d01e685a548364aa82929ef87c23ca32516392f8
3
+ metadata.gz: 44b206001d6db1ddd4899f7c2f9554855c0f0888d4aa6d6379b63e2b6872a515
4
+ data.tar.gz: 70a0d21ad1ec44c8cb897e97219ab627c14fa22b0880f3ae04265fe38acaf549
5
5
  SHA512:
6
- metadata.gz: b8130bdd72fc907640e55c637bb76620b6f7ead9332698a99e74e39276d6c0ea9e8d11c6165439cd4015c0b3b308b3108afa3bbb9fbe2d3ea2db3bb76b5e64ba
7
- data.tar.gz: 4550c21f8cc91a6bf7780847efe8c69c60168226f968f0d1b832e06ca9961eeb1b57667915005c44be78e0c352985ca945cd12eea6ad83dd5fb16a25b1adbb59
6
+ metadata.gz: bd8e8c78fde157cc7740f56c6499e65a0c328edd8a64db4d2852891a5ebf3f98d92d8f19d641a70f77ee8849ec1210d476469d899abffcb78a14aa4c03822a75
7
+ data.tar.gz: 641505f4668757c5c3e27e3eee4ee3cc747cc6d15505f637da1b0a706fa20e7ec9bb1dd6036595c7f2f7d41b917b1704c01b422764e88cdbc55592fb160d1c41
@@ -1724,6 +1724,10 @@
1724
1724
  </xsl:attribute-set> <!-- formula-stem-number-style -->
1725
1725
  <!-- End Formula's styles -->
1726
1726
 
1727
+ <xsl:template name="refine_formula-stem-number-style">
1728
+
1729
+ </xsl:template>
1730
+
1727
1731
  <xsl:attribute-set name="image-style">
1728
1732
  <xsl:attribute name="text-align">center</xsl:attribute>
1729
1733
 
@@ -2213,13 +2217,13 @@
2213
2217
 
2214
2218
  <xsl:template name="processPrefaceSectionsDefault_Contents">
2215
2219
  <xsl:variable name="nodes_preface_">
2216
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
2220
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
2217
2221
  <node id="{@id}"/>
2218
2222
  </xsl:for-each>
2219
2223
  </xsl:variable>
2220
2224
  <xsl:variable name="nodes_preface" select="xalan:nodeset($nodes_preface_)"/>
2221
2225
 
2222
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
2226
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
2223
2227
  <xsl:sort select="@displayorder" data-type="number"/>
2224
2228
 
2225
2229
  <!-- process Section's title -->
@@ -2253,12 +2257,12 @@
2253
2257
  <xsl:apply-templates select="." mode="contents"/>
2254
2258
  </xsl:for-each>
2255
2259
 
2256
- <xsl:for-each select="/*/*[local-name()='annex']">
2260
+ <!-- <xsl:for-each select="/*/*[local-name()='annex']">
2257
2261
  <xsl:sort select="@displayorder" data-type="number"/>
2258
2262
  <xsl:apply-templates select="." mode="contents"/>
2259
- </xsl:for-each>
2263
+ </xsl:for-each> -->
2260
2264
 
2261
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true') and not(*[local-name()='references'][@normative='true'])][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
2265
+ <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']) &gt; 0] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]][count(.//*[local-name() = 'bibitem'][not(@hidden) = 'true']) &gt; 0]">
2262
2266
  <xsl:sort select="@displayorder" data-type="number"/>
2263
2267
  <xsl:apply-templates select="." mode="contents"/>
2264
2268
  </xsl:for-each>
@@ -2630,7 +2634,7 @@
2630
2634
  </xsl:attribute>
2631
2635
  </xsl:for-each>
2632
2636
 
2633
- <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
2637
+ <xsl:variable name="isNoteOrFnExist" select="./*[local-name()='note'] or ./*[local-name()='example'] or .//*[local-name()='fn'][local-name(..) != 'name'] or ./*[local-name()='source']"/>
2634
2638
  <xsl:if test="$isNoteOrFnExist = 'true'">
2635
2639
  <xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
2636
2640
  </xsl:if>
@@ -2674,7 +2678,7 @@
2674
2678
  <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
2675
2679
  </xsl:when>
2676
2680
  <xsl:otherwise>
2677
- <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 -->
2681
+ <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 -->
2678
2682
  </xsl:otherwise>
2679
2683
  </xsl:choose>
2680
2684
 
@@ -2759,7 +2763,7 @@
2759
2763
  <xsl:param name="continued"/>
2760
2764
  <xsl:if test="normalize-space() != ''">
2761
2765
 
2762
- <fo:block xsl:use-attribute-sets="table-name-style">
2766
+ <fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
2763
2767
 
2764
2768
  <xsl:call-template name="refine_table-name-style">
2765
2769
  <xsl:with-param name="continued" select="$continued"/>
@@ -3144,8 +3148,8 @@
3144
3148
  <xsl:template name="table-header-title">
3145
3149
  <xsl:param name="cols-count"/>
3146
3150
  <!-- row for title -->
3147
- <fo:table-row>
3148
- <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">
3151
+ <fo:table-row role="SKIP">
3152
+ <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">
3149
3153
 
3150
3154
  <xsl:call-template name="refine_table-header-title-style"/>
3151
3155
 
@@ -3154,7 +3158,7 @@
3154
3158
  </xsl:apply-templates>
3155
3159
 
3156
3160
  <xsl:if test="not(ancestor::*[local-name()='table']/*[local-name()='name'])"> <!-- to prevent empty fo:table-cell in case of missing table's name -->
3157
- <fo:block/>
3161
+ <fo:block role="SKIP"/>
3158
3162
  </xsl:if>
3159
3163
 
3160
3164
  </fo:table-cell>
@@ -3189,7 +3193,7 @@
3189
3193
  <xsl:param name="colwidths"/>
3190
3194
  <xsl:param name="colgroup"/>
3191
3195
 
3192
- <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']"/>
3196
+ <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']"/>
3193
3197
 
3194
3198
  <xsl:variable name="isNoteOrFnExistShowAfterTable">
3195
3199
 
@@ -3262,6 +3266,7 @@
3262
3266
  <xsl:apply-templates select="../*[local-name()='p']"/>
3263
3267
  <xsl:apply-templates select="../*[local-name()='dl']"/>
3264
3268
  <xsl:apply-templates select="../*[local-name()='note']"/>
3269
+ <xsl:apply-templates select="../*[local-name()='example']"/>
3265
3270
  <xsl:apply-templates select="../*[local-name()='source']"/>
3266
3271
 
3267
3272
  <xsl:variable name="isDisplayRowSeparator">
@@ -3270,7 +3275,7 @@
3270
3275
 
3271
3276
  <!-- horizontal row separator -->
3272
3277
  <xsl:if test="normalize-space($isDisplayRowSeparator) = 'true'">
3273
- <xsl:if test="../*[local-name()='note'] and normalize-space($table_fn_block) != ''">
3278
+ <xsl:if test="(../*[local-name()='note'] or ../*[local-name()='example']) and normalize-space($table_fn_block) != ''">
3274
3279
  <fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
3275
3280
 
3276
3281
  <xsl:call-template name="setBordersTableArray"/>
@@ -3468,7 +3473,7 @@
3468
3473
 
3469
3474
  <xsl:call-template name="refine_table-header-cell-style"/>
3470
3475
 
3471
- <fo:block>
3476
+ <fo:block role="SKIP">
3472
3477
  <xsl:apply-templates/>
3473
3478
  </fo:block>
3474
3479
  </fo:table-cell>
@@ -3521,7 +3526,7 @@
3521
3526
  <xsl:attribute name="text-align">left</xsl:attribute>
3522
3527
  </xsl:if>
3523
3528
 
3524
- <fo:block>
3529
+ <fo:block role="SKIP">
3525
3530
 
3526
3531
  <xsl:if test="$isGenerateTableIF = 'true'">
3527
3532
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -3535,13 +3540,13 @@
3535
3540
  </fo:table-cell>
3536
3541
  </xsl:template> <!-- td -->
3537
3542
 
3538
- <xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2">
3543
+ <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
3539
3544
 
3540
3545
  <fo:block xsl:use-attribute-sets="table-note-style">
3541
3546
 
3542
3547
  <xsl:call-template name="refine_table-note-style"/>
3543
3548
 
3544
- <!-- Table's note name (NOTE, for example) -->
3549
+ <!-- Table's note/example name (NOTE, for example) -->
3545
3550
  <fo:inline xsl:use-attribute-sets="table-note-name-style">
3546
3551
 
3547
3552
  <xsl:call-template name="refine_table-note-name-style"/>
@@ -3555,7 +3560,7 @@
3555
3560
 
3556
3561
  </xsl:template> <!-- table/note -->
3557
3562
 
3558
- <xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" priority="2">
3563
+ <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
3559
3564
  <xsl:apply-templates/>
3560
3565
  </xsl:template>
3561
3566
 
@@ -4384,7 +4389,7 @@
4384
4389
  -->
4385
4390
  <fo:table-row>
4386
4391
  <fo:table-cell number-columns-spanned="2">
4387
- <fo:block>
4392
+ <fo:block role="SKIP">
4388
4393
  <xsl:call-template name="note"/>
4389
4394
  </fo:block>
4390
4395
  </fo:table-cell>
@@ -4449,7 +4454,7 @@
4449
4454
 
4450
4455
  <xsl:call-template name="refine_dt-cell-style"/>
4451
4456
 
4452
- <fo:block xsl:use-attribute-sets="dt-block-style">
4457
+ <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
4453
4458
  <xsl:copy-of select="@id"/>
4454
4459
 
4455
4460
  <xsl:if test="normalize-space($key_iso) = 'true'">
@@ -4479,7 +4484,7 @@
4479
4484
 
4480
4485
  <xsl:call-template name="refine_dd-cell-style"/>
4481
4486
 
4482
- <fo:block>
4487
+ <fo:block role="SKIP">
4483
4488
 
4484
4489
  <xsl:if test="$isGenerateTableIF = 'true'">
4485
4490
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
@@ -4621,10 +4626,15 @@
4621
4626
  <!-- ========================= -->
4622
4627
  <xsl:template match="*[local-name()='em']">
4623
4628
  <fo:inline font-style="italic">
4629
+ <xsl:call-template name="refine_italic_style"/>
4624
4630
  <xsl:apply-templates/>
4625
4631
  </fo:inline>
4626
4632
  </xsl:template>
4627
4633
 
4634
+ <xsl:template name="refine_italic_style">
4635
+
4636
+ </xsl:template>
4637
+
4628
4638
  <xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
4629
4639
  <xsl:param name="split_keep-within-line"/>
4630
4640
  <fo:inline font-weight="bold">
@@ -4847,11 +4857,41 @@
4847
4857
 
4848
4858
  <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
4849
4859
  <xsl:variable name="text" select="normalize-space(.)"/>
4850
- <fo:inline font-size="75%">
4860
+ <fo:inline font-size="75%" role="SKIP">
4851
4861
  <xsl:if test="string-length($text) &gt; 0">
4852
- <xsl:call-template name="recursiveSmallCaps">
4853
- <xsl:with-param name="text" select="$text"/>
4854
- </xsl:call-template>
4862
+ <xsl:variable name="smallCapsText">
4863
+ <xsl:call-template name="recursiveSmallCaps">
4864
+ <xsl:with-param name="text" select="$text"/>
4865
+ </xsl:call-template>
4866
+ </xsl:variable>
4867
+ <!-- merge neighboring fo:inline -->
4868
+ <xsl:for-each select="xalan:nodeset($smallCapsText)/node()">
4869
+ <xsl:choose>
4870
+ <xsl:when test="self::fo:inline and preceding-sibling::node()[1][self::fo:inline]"><!-- <xsl:copy-of select="."/> --></xsl:when>
4871
+ <xsl:when test="self::fo:inline and @font-size">
4872
+ <xsl:variable name="curr_pos" select="count(preceding-sibling::node()) + 1"/>
4873
+ <!-- <curr_pos><xsl:value-of select="$curr_pos"/></curr_pos> -->
4874
+ <xsl:variable name="next_text_" select="count(following-sibling::node()[not(local-name() = 'inline')][1]/preceding-sibling::node())"/>
4875
+ <xsl:variable name="next_text">
4876
+ <xsl:choose>
4877
+ <xsl:when test="$next_text_ = 0">99999999</xsl:when>
4878
+ <xsl:otherwise><xsl:value-of select="$next_text_ + 1"/></xsl:otherwise>
4879
+ </xsl:choose>
4880
+ </xsl:variable>
4881
+ <!-- <next_text><xsl:value-of select="$next_text"/></next_text> -->
4882
+ <fo:inline>
4883
+ <xsl:copy-of select="@*"/>
4884
+ <xsl:copy-of select="./node()"/>
4885
+ <xsl:for-each select="following-sibling::node()[position() &lt; $next_text - $curr_pos]"> <!-- [self::fo:inline] -->
4886
+ <xsl:copy-of select="./node()"/>
4887
+ </xsl:for-each>
4888
+ </fo:inline>
4889
+ </xsl:when>
4890
+ <xsl:otherwise>
4891
+ <xsl:copy-of select="."/>
4892
+ </xsl:otherwise>
4893
+ </xsl:choose>
4894
+ </xsl:for-each>
4855
4895
  </xsl:if>
4856
4896
  </fo:inline>
4857
4897
  </xsl:template>
@@ -4863,7 +4903,7 @@
4863
4903
  <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
4864
4904
  <xsl:choose>
4865
4905
  <xsl:when test="$char=$upperCase">
4866
- <fo:inline font-size="{100 div 0.75}%">
4906
+ <fo:inline font-size="{100 div 0.75}%" role="SKIP">
4867
4907
  <xsl:value-of select="$upperCase"/>
4868
4908
  </fo:inline>
4869
4909
  </xsl:when>
@@ -5025,6 +5065,10 @@
5025
5065
 
5026
5066
  <xsl:when test="not(contains($text, $separator))">
5027
5067
  <word>
5068
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
5069
+ <xsl:text>
5070
+  </xsl:text> <!-- to add distance between dt and dd -->
5071
+ </xsl:if>
5028
5072
  <xsl:call-template name="enclose_text_in_tags">
5029
5073
  <xsl:with-param name="text" select="normalize-space($text)"/>
5030
5074
  <xsl:with-param name="tags" select="$tags"/>
@@ -5033,6 +5077,10 @@
5033
5077
  </xsl:when>
5034
5078
  <xsl:otherwise>
5035
5079
  <word>
5080
+ <xsl:if test="ancestor::*[local-name() = 'p'][@from_dl = 'true']">
5081
+ <xsl:text>
5082
+  </xsl:text> <!-- to add distance between dt and dd -->
5083
+ </xsl:if>
5036
5084
  <xsl:call-template name="enclose_text_in_tags">
5037
5085
  <xsl:with-param name="text" select="normalize-space(substring-before($text, $separator))"/>
5038
5086
  <xsl:with-param name="tags" select="$tags"/>
@@ -5216,6 +5264,10 @@
5216
5264
  <xsl:template name="getSimpleTable">
5217
5265
  <xsl:param name="id"/>
5218
5266
 
5267
+ <!-- <test0>
5268
+ <xsl:copy-of select="."/>
5269
+ </test0> -->
5270
+
5219
5271
  <xsl:variable name="simple-table">
5220
5272
 
5221
5273
  <!-- Step 0. replace <br/> to <p>...</p> -->
@@ -6261,7 +6313,7 @@
6261
6313
  <fo:table-body>
6262
6314
  <fo:table-row>
6263
6315
  <fo:table-cell display-align="center">
6264
- <fo:block xsl:use-attribute-sets="formula-stem-block-style">
6316
+ <fo:block xsl:use-attribute-sets="formula-stem-block-style" role="SKIP">
6265
6317
 
6266
6318
  <xsl:call-template name="refine_formula-stem-block-style"/>
6267
6319
 
@@ -6269,7 +6321,10 @@
6269
6321
  </fo:block>
6270
6322
  </fo:table-cell>
6271
6323
  <fo:table-cell display-align="center">
6272
- <fo:block xsl:use-attribute-sets="formula-stem-number-style">
6324
+ <fo:block xsl:use-attribute-sets="formula-stem-number-style" role="SKIP">
6325
+
6326
+ <xsl:call-template name="refine_formula-stem-number-style"/>
6327
+
6273
6328
  <xsl:apply-templates select="../*[local-name() = 'name']"/>
6274
6329
  </fo:block>
6275
6330
  </fo:table-cell>
@@ -7791,7 +7846,7 @@
7791
7846
  <!-- second td with sourcecode -->
7792
7847
  <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'] -->
7793
7848
  <fo:table-cell>
7794
- <fo:block>
7849
+ <fo:block role="SKIP">
7795
7850
  <xsl:apply-templates/>
7796
7851
  </fo:block>
7797
7852
  </fo:table-cell>
@@ -8278,7 +8333,7 @@
8278
8333
 
8279
8334
  <xsl:call-template name="setTableCellAttributes"/>
8280
8335
 
8281
- <fo:block>
8336
+ <fo:block role="SKIP">
8282
8337
  <xsl:apply-templates/>
8283
8338
  </fo:block>
8284
8339
  </fo:table-cell>
@@ -8300,7 +8355,7 @@
8300
8355
 
8301
8356
  <xsl:call-template name="setTableCellAttributes"/>
8302
8357
 
8303
- <fo:block>
8358
+ <fo:block role="SKIP">
8304
8359
  <xsl:apply-templates/>
8305
8360
  </fo:block>
8306
8361
  </fo:table-cell>
@@ -8495,6 +8550,12 @@
8495
8550
 
8496
8551
  </xsl:template>
8497
8552
 
8553
+ <xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
8554
+ <fo:inline xsl:use-attribute-sets="example-name-style">
8555
+ <xsl:apply-templates/>
8556
+ </fo:inline>
8557
+ </xsl:template>
8558
+
8498
8559
  <xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
8499
8560
  <xsl:param name="fo_element">block</xsl:param>
8500
8561
 
@@ -9071,6 +9132,50 @@
9071
9132
  <xsl:otherwise><xsl:call-template name="setULLabel"/></xsl:otherwise>
9072
9133
  </xsl:choose>
9073
9134
  </xsl:when>
9135
+ <xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
9136
+
9137
+ <xsl:variable name="label">
9138
+
9139
+ <xsl:variable name="type" select="../@type"/>
9140
+
9141
+ <xsl:variable name="style_prefix_">
9142
+ <xsl:if test="$type = 'roman'">
9143
+ <!-- Example: (i) -->
9144
+ </xsl:if>
9145
+ </xsl:variable>
9146
+ <xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
9147
+
9148
+ <xsl:variable name="style_suffix_">
9149
+ <xsl:choose>
9150
+ <xsl:when test="$type = 'arabic'">
9151
+ .
9152
+ </xsl:when>
9153
+ <xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
9154
+ )
9155
+ </xsl:when>
9156
+ <xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
9157
+ .
9158
+ </xsl:when>
9159
+ <xsl:when test="$type = 'roman'">
9160
+ )
9161
+ </xsl:when>
9162
+ <xsl:when test="$type = 'roman_upper'">.</xsl:when> <!-- Example: I. -->
9163
+ </xsl:choose>
9164
+ </xsl:variable>
9165
+ <xsl:variable name="style_suffix" select="normalize-space($style_suffix_)"/>
9166
+
9167
+ <xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
9168
+ <xsl:value-of select="$style_prefix"/>
9169
+ </xsl:if>
9170
+ <xsl:value-of select="@label"/>
9171
+ <xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
9172
+ <xsl:value-of select="$style_suffix"/>
9173
+ </xsl:if>
9174
+ </xsl:variable>
9175
+
9176
+ <xsl:value-of select="normalize-space($label)"/>
9177
+
9178
+ </xsl:when>
9074
9179
  <xsl:otherwise> <!-- for ordered lists 'ol' -->
9075
9180
 
9076
9181
  <!-- Example: for BSI <?list-start 2?> -->
@@ -9128,10 +9233,10 @@
9128
9233
  <xsl:when test="$type = 'arabic'">
9129
9234
  1.
9130
9235
  </xsl:when>
9131
- <xsl:when test="$type = 'alphabet'">
9236
+ <xsl:when test="$type = 'alphabet' or $type = 'alphabetic'">
9132
9237
  a)
9133
9238
  </xsl:when>
9134
- <xsl:when test="$type = 'alphabet_upper'">
9239
+ <xsl:when test="$type = 'alphabet_upper' or $type = 'alphabetic_upper'">
9135
9240
  A.
9136
9241
  </xsl:when>
9137
9242
  <xsl:when test="$type = 'roman'">
@@ -9266,7 +9371,7 @@
9266
9371
  <xsl:call-template name="refine_list-item-style"/>
9267
9372
 
9268
9373
  <fo:list-item-label end-indent="label-end()">
9269
- <fo:block xsl:use-attribute-sets="list-item-label-style">
9374
+ <fo:block xsl:use-attribute-sets="list-item-label-style" role="SKIP">
9270
9375
 
9271
9376
  <xsl:call-template name="refine_list-item-label-style"/>
9272
9377
 
@@ -9280,7 +9385,7 @@
9280
9385
  </fo:block>
9281
9386
  </fo:list-item-label>
9282
9387
  <fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
9283
- <fo:block>
9388
+ <fo:block role="SKIP">
9284
9389
 
9285
9390
  <xsl:call-template name="refine_list-item-body-style"/>
9286
9391
 
@@ -9559,10 +9664,10 @@
9559
9664
  <fo:table-body>
9560
9665
  <fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
9561
9666
 
9562
- <fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
9563
- <fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
9564
- <fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
9565
- <fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
9667
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Date</fo:block></fo:table-cell>
9668
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Type</fo:block></fo:table-cell>
9669
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Change</fo:block></fo:table-cell>
9670
+ <fo:table-cell border="1pt solid black"><fo:block role="SKIP">Pages</fo:block></fo:table-cell>
9566
9671
  </fo:table-row>
9567
9672
  <xsl:apply-templates/>
9568
9673
  </fo:table-body>
@@ -9577,7 +9682,7 @@
9577
9682
 
9578
9683
  <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
9579
9684
  <fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
9580
- <fo:block><xsl:apply-templates/></fo:block>
9685
+ <fo:block role="SKIP"><xsl:apply-templates/></fo:block>
9581
9686
  </fo:table-cell>
9582
9687
  </xsl:template>
9583
9688
  <!-- ============ -->
@@ -9859,7 +9964,7 @@
9859
9964
  <xsl:for-each select="*[local-name() = 'tab']">
9860
9965
  <xsl:variable name="current_id" select="generate-id()"/>
9861
9966
  <fo:table-cell>
9862
- <fo:block line-height-shift-adjustment="disregard-shifts">
9967
+ <fo:block line-height-shift-adjustment="disregard-shifts" role="SKIP">
9863
9968
  <xsl:call-template name="insert_basic_link">
9864
9969
  <xsl:with-param name="element">
9865
9970
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">
@@ -9877,7 +9982,7 @@
9877
9982
  </xsl:for-each>
9878
9983
  <!-- last column - for page numbers -->
9879
9984
  <fo:table-cell text-align="right" font-size="10pt" font-weight="bold" font-family="Arial">
9880
- <fo:block>
9985
+ <fo:block role="SKIP">
9881
9986
  <xsl:call-template name="insert_basic_link">
9882
9987
  <xsl:with-param name="element">
9883
9988
  <fo:basic-link internal-destination="{$target}" fox:alt-text="{.}">