Skip to content

Commit

Permalink
Merge pull request #761 from metanorma/update_pres_xml
Browse files Browse the repository at this point in the history
Update for Presentation xml
  • Loading branch information
Intelligent2013 authored Nov 6, 2024
2 parents b32eb06 + 901be79 commit 3a30ca3
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -9888,17 +9888,24 @@
<xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')"> <!-- definition list in a figure -->
<!-- Presentation XML contains 'Key' caption, https://github.com/metanorma/isodoc/issues/607 -->
<xsl:if test="not(preceding-sibling::*[1][local-name() = 'p' and @keep-with-next])"> <!-- for old Presentation XML -->
<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>

<xsl:choose>
<xsl:when test="$namespace = 'bsi'"></xsl:when><!-- https://github.com/metanorma/isodoc/issues/607, see template<xsl:template
match="bsi:figure/bsi:p[preceding-sibling::bsi:p[@keep-with-next = 'true']][node()[1][self::bsi:sup]]" priority="5"> -->
<xsl:otherwise>
<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>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:when> <!-- END: definition list in a figure -->
</xsl:choose>
Expand Down Expand Up @@ -18627,7 +18634,7 @@
</fo:block-container>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:when> <!-- BSI -->

<xsl:when test="$namespace = 'csd' or $namespace = 'iso' or $namespace = 'jcgm'">
<fo:block xsl:use-attribute-sets="admonition-style">
Expand Down

0 comments on commit 3a30ca3

Please sign in to comment.