List Info

Thread: invisible footnote (in note) in qandaset when using FOP to generate a .pdf




invisible footnote (in note) in qandaset when using FOP to generate a .pdf
user name
2007-10-24 02:36:32

I do not know if the following issue is a docbook or a FOP issue.
But as a happy Docbook user, I start my search for a solution on this list.

The footnote content is lost (?) during the fo to pdf processing whenever I put a footnote in a qandaset.
Is this because of a wrong usage of docbook or a problem with my tool chain?

I use

- docbook-xsl-1.73.2

- saxon6-5-5

- fop-0.93

 

Input:

<?xml version=&quot;1.0&quot; encoding="UTF-8"?>;

<book version=&quot;5.0&quot; xmlns=&quot;http://docbook.org/ns/docbook&quot;

 &nbsp; &nbsp;  xmlnslink=";http://www.w3.org/1999/xlink&quot;

 &nbsp; &nbsp;  xmlnsi="http://www.w3.org/2001/XInclude"

 &nbsp; &nbsp;  xmlns:svg="http://www.w3.org/2000/svg";

 &nbsp; &nbsp;  xmlns:mml="http://www.w3.org/1998/Math/MathML"

 &nbsp; &nbsp;  xmlns:html="http://www.w3.org/1999/xhtml&quot;

 &nbsp; &nbsp;  xmlns:db="http://docbook.org/ns/docbook&quot;>

  <title&gt;Test DocBook 5.0</title>

  <chapter>

 &nbsp;  <title&gt;Test Pdf</title>

 &nbsp;  <section>

 &nbsp; &nbsp;  <title&gt;invisible footnote in note in qandaset&lt;/title>;

 &nbsp; &nbsp;  <qandaset>

 &nbsp; &nbsp; &nbsp;  <qandadiv>

 &nbsp; &nbsp; &nbsp; &nbsp;  <qandaentry>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; <question>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <para>Question</para&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; </question>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; <answer>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <para>Answer&lt;/para>;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <note&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; <para&gt;Note with a footnote&lt;footnote&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <para&gt;This is the 'invisible' footnote.&lt;/para>;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; </footnote>&lt;/para>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; </note>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; </answer>

 &nbsp; &nbsp; &nbsp; &nbsp;  </qandaentry>

 &nbsp; &nbsp; &nbsp;  </qandadiv>

 &nbsp; &nbsp;  </qandaset>

 &nbsp;  </section>

  </chapter>

</book&gt;

 

 

Using:

java com.icl.saxon.StyleSheet -o test.fo test.xml docbook.xsl

fop  test.fo test.pdf

 

Generates the outputs: .fo and .pdf

 

…

<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">;Note with a footnote<fo:footnote><;fo:inline&gt;<fo:inline font-size="75%&quot; font-weight="normal" font-style="normal" baseline-shift=&quot;super&quot;>1</fo:inline&gt;</fo:inline>&lt;fo:footnote-body font-family="serif,Symbol,ZapfDingbats" font-size="8pt&quot; font-weight="normal" font-style="normal" text-align="justify" start-indent="0pt" text-indent="0pt">;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <fo:block><;fo:inline font-size="75%&quot; font-weight="normal" font-style="normal" baseline-shift="super">1</fo:inline>;This is the 'invisible' footnote.&lt;/fo:block>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; </fo:footnote-body></fo:footnote></fo:block>

…

…

Note

Note with a footnote1

 

…

 

But the footnote content: "This is the 'invisible' footnote.&quot; is lost during the fo to pdf processing

 

Any hints about what I should do?

 

Thanks,

 

Paul

Re: invisible footnote (in note) in qandaset when using FOP to generate a .pdf
user name
2007-10-24 04:54:44
Hi Paul,

Paul Stubbe wrote:
> I do not know if the following issue is a docbook or a
FOP issue.
> But as a happy Docbook user, I start my search for a
solution on this list.
> 
> The footnote content is lost (?) during the fo to pdf
processing whenever I
> put a footnote in a qandaset.
> Is this because of a wrong usage of docbook or a
problem with my tool chain?

You hit bug #37579 [1]: footnotes in tables and lists get
lost. And it 
appears that qandaset are rendered using lists in FO.

I’m afraid there is no straightforward solution. If you
absolutely need 
footnotes in qandaset you would have to customize the XSLT
template for 
qandaset and avoid using lists or tables to render them. Not
exactly 
simple.

Of course fixing the bug is the best long-term solution, but
that 
requires some development.

Sorry,
Vincent

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=37579

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )