Skip to content

Commit 8e6d1cd

Browse files
xslt update based on metanorma/mn-native-pdf@d38f4da
1 parent 84c49c5 commit 8e6d1cd

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

lib/isodoc/plateau/plateau.international-standard.xsl

+26-8
Original file line numberDiff line numberDiff line change
@@ -5163,7 +5163,8 @@
51635163
</xsl:choose>
51645164
</xsl:variable>
51655165
<xsl:variable name="current_fn_number_text">
5166-
<xsl:value-of select="$current_fn_number"/>
5166+
5167+
<xsl:value-of select="$current_fn_number"/>
51675168

51685169
</xsl:variable>
51695170

@@ -6487,9 +6488,19 @@
64876488
</fo:inline>
64886489
</xsl:template>
64896490

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"/>
64916493
<!-- <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>
64936504
<xsl:variable name="ratio_">
64946505
0.75
64956506
</xsl:variable>
@@ -10515,12 +10526,14 @@
1051510526

1051610527
<xsl:when test="contains(normalize-space($fo_element), 'list')">
1051710528

10518-
<xsl:variable name="provisional_distance_between_starts">
10529+
<xsl:variable name="provisional_distance_between_starts_">
1051910530
7
1052010531
</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_">
1052210534
0
1052310535
</xsl:variable>
10536+
<xsl:variable name="indent" select="normalize-space($indent_)"/>
1052410537

1052510538
<fo:list-block provisional-distance-between-starts="{$provisional_distance_between_starts}mm">
1052610539
<fo:list-item>
@@ -11242,14 +11255,17 @@
1124211255
</xsl:when>
1124311256
<xsl:when test="local-name(..) = 'ol' and @label"> <!-- for ordered lists 'ol', and if there is @label, for instance label="1.1.2" -->
1124411257

11245-
<xsl:variable name="label">
11258+
<xsl:variable name="type" select="../@type"/>
1124611259

11247-
<xsl:variable name="type" select="../@type"/>
11260+
<xsl:variable name="label">
1124811261

1124911262
<xsl:variable name="style_prefix_">
1125011263
<xsl:if test="$type = 'roman'">
1125111264
<!-- Example: (i) -->
1125211265
</xsl:if>
11266+
<xsl:if test="$type = 'alphabet'">
11267+
11268+
</xsl:if>
1125311269
</xsl:variable>
1125411270
<xsl:variable name="style_prefix" select="normalize-space($style_prefix_)"/>
1125511271

@@ -11275,13 +11291,15 @@
1127511291
<xsl:if test="$style_prefix != '' and not(starts-with(@label, $style_prefix))">
1127611292
<xsl:value-of select="$style_prefix"/>
1127711293
</xsl:if>
11294+
1127811295
<xsl:value-of select="@label"/>
11296+
1127911297
<xsl:if test="not(java:endsWith(java:java.lang.String.new(@label),$style_suffix))">
1128011298
<xsl:value-of select="$style_suffix"/>
1128111299
</xsl:if>
1128211300
</xsl:variable>
1128311301

11284-
<xsl:value-of select="normalize-space($label)"/>
11302+
<xsl:value-of select="normalize-space($label)"/>
1128511303

1128611304
</xsl:when>
1128711305
<xsl:otherwise> <!-- for ordered lists 'ol' -->

0 commit comments

Comments
 (0)