Re: Problem with footnotes

"G. Ken Holman" <[email protected]> Fri, 11 Apr 2003 10:53:49 -0400
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>
At 2003-04-11 15:58 +0200, Anton Wardaschko (PA) wrote:
>Then the genereted fo-file contains:
>
><fo:footnote>
>   <fo:inline>
>   <fo:inline baseline-shift="super" font-size="8.8pt" vertical-align="super">
>   [<fo:basic-link internal-destination="aaa">8</fo:basic-link>]
>   </fo:inline>
>   </fo:inline>
>
>   <fo:footnote-body font-family="Arial" font-size="8.8pt">
>     <fo:block>

All you are missing is an id="aaa" on the above block.

>     <fo:inline baseline-shift="super" font-size="8.8pt" 
> vertical-align="super">
>     [<fo:basic-link internal-destination="aaa">8</fo:basic-link>]

So this happens to be redundant ... you can keep it, or if you want to get 
rid of it then just parameterize your template (since you are calling it 
twice you can call it once with a flag to include <basic-link> and once 
without).

>     </fo:inline>test</fo:block>
>   </fo:footnote-body>
></fo:footnote>
>
>There is the same link in footnote and footnote-body and it doesn't work.

Because what you are missing is the anchor in the area tree for the 
internal destination.  By adding it to the block found inside your 
footnote-body, you will resolve the "other end" of the hyperlink.

I hope this helps.

...................... Ken


--
Upcoming hands-on courses:   Europe (XSLT/XPath):    May  5, 2003
-                            Europe (XSL-FO):        May 16, 2003
- (XSLT/XPath and/or XSL-FO) North America:      June 16-20, 2003

G. Ken Holman                mailto:[email protected]
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 0-13-140374-5                              Definitive XSL-FO
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1              Practical Formatting Using XSL-FO
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc