Re: [xsl] Resetting footnotes not working

Subject: Re: [xsl] Resetting footnotes not working
From: "Mark Giffin m1879@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Jul 2023 06:36:59 -0000
Hi Toshihiko,

This worked for me to reset PDF footnotes on every page, thanks very much.

Here's how I did it. In addition to adding these axf: attributes to <fo:page-sequence>:

<fo:page-sequence force-page-count="auto" master-reference="ditamap-body-sequence"
B B B axf:footnote-number-initial="1" axf:footnote-number-reset="page">
B B B <fo:static-content flow-name="xsl-footnote-separator">


I also had to refactor every link with axf: markup. So for every <fo:basic-link> like this:

<fo:basic-link internal-destination="fnd74e343">1</fo:basic-link>

I replaced it with:

<axf:footnote-number id="fnd74e343"/>

And for an <fo:list-item-label> like this:

<fo:list-item-label end-indent="label-end()">
B  <fo:block text-align="right" id="fnd74e343">
B  <fo:inline
B B B B B  keep-with-previous.within-line="always"
B B B B B  baseline-shift="super" font-size="75%"
B B B  >1</fo:inline></fo:block>
</fo:list-item-label>

I replaced it with something like this:

<fo:list-item-label end-indent="label-end()">
B  <fo:block text-align="right"> <<<<<<< remove @id
B  <fo:inline keep-with-previous.within-line="always"
B B B B B  baseline-shift="super" font-size="75%">
B B B  <axf:footnote-number-citation ref-id="fnd74e343"/> <<<<<<< add @id
B B B  </fo:inline>
B  </fo:block>
</fo:list-item-label>

Thanks,
Mark


On 7/14/2023 9:17 PM, Toshihiko Makita tmakita@xxxxxxxxxxxxx wrote:
Hi Mark,

I found that there are no effective examples for this extension property. So I made the example from Antenna House US site sample archive.

Please download the ZIP file that contains .fo and .pdf files. (This is the link to my OneDrive. It is safe.)

https://1drv.ms/u/s!AkbL99fLhxKUiNAwQrFEBjfAPPc3jQ?e=lY4tfk

Hope this helps your development work.

Regards,

Toshihiko Makita

Antenna House, Ina Branch.

On 2023/07/15 10:21, Mark Giffin m1879@xxxxxxxxxxxxx wrote:
Thanks very much for the tip, Toshihiko. I should have checked for an extension. I am using AH v6.2 and the docs for this version say that it supports axf:footnote-number-reset. But when I try to use it according to the docs, it has no effect on the footnote numbering. I'm using it like below, with axf:footnote-number-initial.

<fo:page-sequence force-page-count="auto" master-reference="ditamap-body-sequence"
B B B axf:footnote-number-initial="1" axf:footnote-number-reset="page">
B B B <fo:static-content flow-name="xsl-footnote-separator">
...


Did I miss something in the use of this extension?

Thanks,
Mark

Current Thread