Skip to content

Commit

Permalink
xslt update based on metanorma/mn-native-pdf@61be93b
Browse files Browse the repository at this point in the history
  • Loading branch information
metanorma-ci committed Jul 15, 2021
1 parent 4b832f3 commit 444e4a6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/isodoc/m3aawg/m3aawg.policy.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2036,6 +2036,7 @@




<!-- fn will be processed inside 'note' processing -->


Expand All @@ -2044,6 +2045,10 @@




<!-- for BSI (not PAS) display Notes before footnotes -->


<!-- except gb -->

<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
Expand All @@ -2069,6 +2074,10 @@
<!-- fn processing -->
<xsl:call-template name="fn_display"/>


<!-- for PAS display Notes after footnotes -->


</fo:table-cell>
</fo:table-row>
</fo:table-body>
Expand Down Expand Up @@ -2126,6 +2135,7 @@
<xsl:if test="$parent-name = 'tfoot'">



</xsl:if>


Expand Down Expand Up @@ -2254,15 +2264,22 @@




<!-- Table's note name (NOTE, for example) -->

<fo:inline padding-right="2mm">






<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>

</fo:inline>



<xsl:apply-templates mode="process"/>
</fo:block>

Expand All @@ -2282,6 +2299,8 @@
<xsl:variable name="reference" select="@reference"/>
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
<fo:block margin-bottom="12pt">





Expand All @@ -2301,6 +2320,7 @@
<xsl:value-of select="@reference"/>



</fo:inline>
<fo:inline>

Expand Down Expand Up @@ -2450,6 +2470,7 @@

<xsl:value-of select="@reference"/>


</fo:basic-link>
</fo:inline>
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
Expand Down
21 changes: 21 additions & 0 deletions lib/isodoc/m3aawg/m3aawg.report.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2036,6 +2036,7 @@




<!-- fn will be processed inside 'note' processing -->


Expand All @@ -2044,6 +2045,10 @@




<!-- for BSI (not PAS) display Notes before footnotes -->


<!-- except gb -->

<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
Expand All @@ -2069,6 +2074,10 @@
<!-- fn processing -->
<xsl:call-template name="fn_display"/>


<!-- for PAS display Notes after footnotes -->


</fo:table-cell>
</fo:table-row>
</fo:table-body>
Expand Down Expand Up @@ -2126,6 +2135,7 @@
<xsl:if test="$parent-name = 'tfoot'">



</xsl:if>


Expand Down Expand Up @@ -2254,15 +2264,22 @@




<!-- Table's note name (NOTE, for example) -->

<fo:inline padding-right="2mm">






<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>

</fo:inline>



<xsl:apply-templates mode="process"/>
</fo:block>

Expand All @@ -2282,6 +2299,8 @@
<xsl:variable name="reference" select="@reference"/>
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
<fo:block margin-bottom="12pt">





Expand All @@ -2301,6 +2320,7 @@
<xsl:value-of select="@reference"/>



</fo:inline>
<fo:inline>

Expand Down Expand Up @@ -2450,6 +2470,7 @@

<xsl:value-of select="@reference"/>


</fo:basic-link>
</fo:inline>
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
Expand Down

0 comments on commit 444e4a6

Please sign in to comment.