You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Frank Worsley <fw...@gmail.com> on 2008/09/05 19:09:48 UTC
NPE when rendering fo:block-container inside fo:inline
Hello,
I am using the Antenna House XSL stylesheets to convert XHTML to
XML-FO. This works very well in most cases. However, I have come
across a problem where a fo:block-container inside a fo:inline will
cause an NPE.
An example FO file that exhibits this problem is attached. The stack
trace is also attached. If you remove the fo:inline that encloses the
fo:block-container, then everything works fine.
I'm wondering, is it even legal to have fo:block-container inside a
fo:inline? If it is legal, any chance that this problem has been fixed
in 0.95?
Thank you for any insights.
- Frank
Re: NPE when rendering fo:block-container inside fo:inline
Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Frank,
Frank Worsley wrote:
> Hello,
>
> I am using the Antenna House XSL stylesheets to convert XHTML to
> XML-FO. This works very well in most cases. However, I have come
> across a problem where a fo:block-container inside a fo:inline will
> cause an NPE.
>
> An example FO file that exhibits this problem is attached. The stack
> trace is also attached. If you remove the fo:inline that encloses the
> fo:block-container, then everything works fine.
>
> I'm wondering, is it even legal to have fo:block-container inside a
> fo:inline?
Yes: the content model of fo:inline is the following:
(#PCDATA|%inline;|%block;)*
and the %block; entity includes fo:block-container.
> If it is legal, any chance that this problem has been fixed
> in 0.95?
Your attached file runs fine with FOP 0.95, so that should be ok.
> Thank you for any insights.
>
> - Frank
HTH,
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org