5163
5163
</xsl:choose>
5164
5164
</xsl:variable>
5165
5165
<xsl:variable name="current_fn_number_text">
5166
- <xsl:value-of select="$current_fn_number"/>
5166
+
5167
+ <xsl:value-of select="$current_fn_number"/>
5167
5168
5168
5169
</xsl:variable>
5169
5170
6487
6488
</fo:inline>
6488
6489
</xsl:template>
6489
6490
6490
- <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
6491
+ <xsl:template match="text()[ancestor::*[local-name()='smallcap']]" name="smallcaps">
6492
+ <xsl:param name="txt"/>
6491
6493
<!-- <xsl:variable name="text" select="normalize-space(.)"/> --> <!-- https://github.com/metanorma/metanorma-iso/issues/1115 -->
6492
- <xsl:variable name="text" select="."/>
6494
+ <xsl:variable name="text">
6495
+ <xsl:choose>
6496
+ <xsl:when test="$txt != ''">
6497
+ <xsl:value-of select="$txt"/>
6498
+ </xsl:when>
6499
+ <xsl:otherwise>
6500
+ <xsl:value-of select="."/>
6501
+ </xsl:otherwise>
6502
+ </xsl:choose>
6503
+ </xsl:variable>
6493
6504
<xsl:variable name="ratio_">
6494
6505
0.75
6495
6506
</xsl:variable>
@@ -10515,12 +10526,14 @@
10515
10526
10516
10527
<xsl:when test="contains(normalize-space($fo_element), 'list')">
10517
10528
10518
- <xsl:variable name="provisional_distance_between_starts ">
10529
+ <xsl:variable name="provisional_distance_between_starts_ ">
10519
10530
7
10520
10531
</xsl:variable>
10521
- <xsl:variable name="indent">
10532
+ <xsl:variable name="provisional_distance_between_starts" select="normalize-space($provisional_distance_between_starts_)"/>
10533
+ <xsl:variable name="indent_">
10522
10534
0
10523
10535
</xsl:variable>
10536
+ <xsl:variable name="indent" select="normalize-space($indent_)"/>
10524
10537
10525
10538
<fo:list-block provisional-distance-between-starts="{$provisional_distance_between_starts}mm">
10526
10539
<fo:list-item>
@@ -11242,14 +11255,17 @@
11242
11255
</xsl:when>
11243
11256
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
11244
11257
11245
- <xsl:variable name="label" >
11258
+ <xsl:variable name="type" select="../@type"/ >
11246
11259
11247
- <xsl:variable name="type" select="../@type"/ >
11260
+ <xsl:variable name="label" >
11248
11261
11249
11262
<xsl:variable name="style_prefix_">
11250
11263
<xsl:if test="$type = 'roman'">
11251
11264
<!-- Example: (i) -->
11252
11265
</xsl:if>
11266
+ <xsl:if test="$type = 'alphabet'">
11267
+
11268
+ </xsl:if>
11253
11269
</xsl:variable>
11254
11270
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
11255
11271
@@ -11275,13 +11291,15 @@
11275
11291
<xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
11276
11292
<xsl:value-of select="$style_prefix"/>
11277
11293
</xsl:if>
11294
+
11278
11295
<xsl:value-of select="@label"/>
11296
+
11279
11297
<xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
11280
11298
<xsl:value-of select="$style_suffix"/>
11281
11299
</xsl:if>
11282
11300
</xsl:variable>
11283
11301
11284
- <xsl:value-of select="normalize-space($label)"/>
11302
+ <xsl:value-of select="normalize-space($label)"/>
11285
11303
11286
11304
</xsl:when>
11287
11305
<xsl:otherwise> <!-- for ordered lists 'ol' -->
0 commit comments