pkrishnaswami wrote:

> java.lang.RuntimeException: org.apache.fop.apps.FOPException: fo:flow must
> contain block-level children
> at
> at
> Here is the snippet of the XSL I use for processing the XML data:
> <fo:flow flow-name="xsl-region-body">
> <xsl:apply-templates select="LogMessage" />
> </fo:flow>
> As long as the tag LogMessage exists in the XML data file, everything works
> as designed but if the LogMessage tag does not exist because there are no
> log messages, I get the above exception. Is there a way, to just publish an
> empty report with just the Column headers if there is no LogMessage tag in
> the XML data file . How would I modify the above snippet? I appreciate any
> help on this issue.

Just give to fop what it wants - <fo:block> in any case.
<fo:flow flow-name="xsl-region-body">
                <xsl:apply-templates select="LogMessage" />

Oleg Tkachenko
Multiconn International Ltd

Reply via email to