OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: docbook-slides: footnote in title ?


Apparently this is something that was unexpected by fop:

https://issues.apache.org/bugzilla/show_bug.cgi?id=53817#c3

...
The NPE is thrown when foot-note is declared within the static-before region.
If I move the foot-note to the body, the NPE disappears.

Note that FOP behaves in the same way whatever the version is (tried
against v0.95, v1.0, latest trunk).

That said, IMHO I don't think that a static region is the right place
for a footnote declaration, so author should avoid to use that at this
place, as a good practice/workaround.
...

HTH

On Sun, Sep 2, 2012 at 5:39 PM, Mathieu Malaterre
<mathieu.malaterre@gmail.com> wrote:
> Hi there,
>
>   Does anyone knows whether the following is valid:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE slides PUBLIC "-//Norman Walsh//DTD Slides XML V3.4.0//EN"
> "http://docbook.sourceforge.net/release/slides/3.4.0/schema/dtd/slides-full.dtd";>
> <slides>
>   <foil>
>   <title>My Title<footnote><para><ulink
> url="http://www.example.com/"/></para></footnote></title>
>   <para/>
>   </foil>
> </slides>
>
> it makes fop crash with a java.lang.NullPointerException exception.
>
> as a side note, the following is working nicely:
>
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
> "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
> <article>
> <section>
>   <title>My Title<footnote><para><ulink
> url="http://www.example.com/"/></para></footnote></title>
>   <para/>
> </section>
> </article>
>
> See also:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=53817
>
> Thanks for comments,
> --
> Mathieu



-- 
Mathieu


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]