Skip to content

Commit

Permalink
xslt update based on metanorma/mn-native-pdf@3439454
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 authored Oct 29, 2024
1 parent 0b729d5 commit 5f5427f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib/isodoc/plateau/plateau.international-standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5629,17 +5629,18 @@
</fo:block>
</xsl:when> <!-- END: a few components -->
<xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')"> <!-- definition list in a figure -->
<fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">

<!-- commented, Presentation XML contains 'Key' caption, https://github.com/metanorma/isodoc/issues/607 -->
<!-- <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">

<xsl:call-template name="refine_figure_key_style"/>

<xsl:variable name="title-key">
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">key</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="$title-key"/>
</fo:block>
</fo:block> -->
</xsl:when> <!-- END: definition list in a figure -->
</xsl:choose>

Expand Down Expand Up @@ -5825,6 +5826,14 @@

</xsl:template> <!-- END: dl -->

<!-- caption for figure key and another caption -->
<xsl:template match="*[local-name() = 'figure']/*[local-name() = 'p'][@keep-with-next = 'true' and *[local-name() = 'strong']]" priority="3">
<fo:block text-align="left" margin-bottom="12pt" keep-with-next="always">
<xsl:call-template name="refine_figure_key_style"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>

<xsl:template name="refine_dl_formula_where_style">

</xsl:template> <!-- refine_dl_formula_where_style -->
Expand Down

0 comments on commit 5f5427f

Please sign in to comment.