Skip to content

Commit

Permalink
common.xsl updated for figure key, metanorma/isodoc#607
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Oct 29, 2024
1 parent 32c4780 commit 24e157b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9861,7 +9861,8 @@
</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"/>

Expand All @@ -9871,7 +9872,7 @@
</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 @@ -10086,6 +10087,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:if test="$namespace = 'bsi'">
<xsl:attribute name="margin-bottom">3pt</xsl:attribute>
Expand Down

0 comments on commit 24e157b

Please sign in to comment.