Skip to content

Commit

Permalink
Merge pull request #458 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 2fcd94e + a6b1151 commit 6403136
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 15 deletions.
13 changes: 10 additions & 3 deletions lib/isodoc/bipm/bipm.brochure.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7484,7 +7484,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 @@ -7503,18 +7505,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/bipm/bipm.guide.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7484,7 +7484,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 @@ -7503,18 +7505,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/bipm/bipm.mise-en-pratique.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7484,7 +7484,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 @@ -7503,18 +7505,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/bipm/bipm.rapport.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7484,7 +7484,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 @@ -7503,18 +7505,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/bipm/jcgm.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5299,7 +5299,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 @@ -5318,18 +5320,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 6403136

Please sign in to comment.