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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to