Skip to content

Commit

Permalink
Merge pull request #450 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 16, 2025
2 parents 05734ae + 28c1b4a commit 674db7c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 10 additions & 3 deletions lib/isodoc/ieee/ieee.amendment.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7300,7 +7300,9 @@
<xsl:with-param name="element">
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->

<xsl:copy-of select="$current_fn_number_text"/>

</fo:inline>
</fo:basic-link>
</xsl:with-param>
Expand All @@ -7319,18 +7321,23 @@

<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">

<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">

<xsl:variable name="fn_block">
<xsl:call-template name="refine_fn-body-style"/>

<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">

<xsl:call-template name="refine_fn-body-num-style"/>

<xsl:value-of select="$current_fn_number_text"/>

</fo:inline>
<xsl:apply-templates/>
</fo:block>
</xsl:variable>

<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
<xsl:copy-of select="$fn_block"/>
</fo:block>

</fo:block-container>
</fo:footnote-body>
</fo:footnote>
Expand Down
13 changes: 10 additions & 3 deletions lib/isodoc/ieee/ieee.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7300,7 +7300,9 @@
<xsl:with-param name="element">
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
<fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->

<xsl:copy-of select="$current_fn_number_text"/>

</fo:inline>
</fo:basic-link>
</xsl:with-param>
Expand All @@ -7319,18 +7321,23 @@

<fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">

<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">

<xsl:variable name="fn_block">
<xsl:call-template name="refine_fn-body-style"/>

<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">

<xsl:call-template name="refine_fn-body-num-style"/>

<xsl:value-of select="$current_fn_number_text"/>

</fo:inline>
<xsl:apply-templates/>
</fo:block>
</xsl:variable>

<fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP">
<xsl:copy-of select="$fn_block"/>
</fo:block>

</fo:block-container>
</fo:footnote-body>
</fo:footnote>
Expand Down

0 comments on commit 674db7c

Please sign in to comment.