Ticket #687 (new Bug)
Internal links in footnotes cause PDF generation to fail
| Reported by: | pdc@… | Owned by: | |
|---|---|---|---|
| Priority: | Minor | Milestone: | |
| Component: | Version: | ||
| Keywords: | Cc: |
Description
[jira2trac import : issue created on January 6, 2009 11:10:55 PM CET http://issues.cocoondev.org/browse/DSY-687 ]
If a footnote (i.e., in a <span class="footnote">) contains a link to another doc in the same site, a request for a PDF of the doc with the footnote in it results in the following error:
Failed to process pipeline
Error(Unknown location): fo:footnote is not a valid child element of fo:block.
This happens both when a Daisy link is used and when a full URL is used.
It does not happen, however, if there is a link in a footnote to another site. (I've only tested that with non-Daisy sites.)
Change History
comment:2 Changed 3 years ago by paul
[jira2trac import : comment created by pdcurtis on January 7, 2009 3:25:46 PM CET]
Thanks for the explanation. And I can now correct what I said about the error not happening if the link is to another site: The error does not happen if there is a hyperlinked URL in a footnote.
[jira2trac import : comment created by karel on January 7, 2009 9:48:41 AM CET]
I can reproduce this, but it always occurs (even in the last case)
Here's what goes wrong:
Currently, when you create a link (outsite of a footnote), a footnote is created containing the URL (so that people using the printed PDF can still know where the link points to).
When you create a link inside a footnote, the PDF version would need to contain a footnote-in-footnote. That's where the invalid xslfo is generated (fo:footnote in fo:block)
I can't think of a workaround (except not using links inside footnotes)