Hi Andrew,
 
Thanks for the response.
 
> This is the Saxon mailing list, for xsl:fo questions you should ask them on the xsl-list (or > maybe that yahoo groups one...).

Will do, I get confused about the forums that I should post into sometimes.
 
> If that xsl:for-each selects nothing, you will end up with an empty
> fo:block-container, which isn't allowed.

I'll look into it & see if we can't use xsl:for-each differently within fo:block-container.
 
Regards,
Kamo

--- On Fri, 8/26/11, Andrew Welch <andrew.j.welch@gmail.com> wrote:

From: Andrew Welch <andrew.j.welch@gmail.com>
Subject: Re: [saxon] Missing Child Elements
To: "Mailing list for the SAXON XSLT and XQuery processor" <saxon-help@lists.sourceforge.net>
Date: Friday, August 26, 2011, 1:11 PM

> I'm getting the exception:
>
> -----------------------------------------------------------------------------------------------------------------------------------
> (Location of error unknown)org.apache.fop.fo.ValidationException: Error(Unknown location): fo:block-container is missing child elements.
>
> Required Content Model: marker* (%block;)+
> ___________________________________________________________________________
>
> Although the exception is explanatory, I'm not sure which child element is missing & how to look for it. As far as I can see all seems fine in the .xsl file (attached) I'm using.

This is the Saxon mailing list, for xsl:fo questions you should ask
them on the xsl-list (or maybe that yahoo groups one...).

Without the source xml, it's not possible to give anything other than
a guess, but looking at the xslt, you have this:

<fo:block-container>
    <xsl:variable .....
    <xsl:for-each select="MEM-STMT/ACC/PROV">
        <fo:block>

If that xsl:for-each selects nothing, you will end up with an empty
fo:block-container, which isn't allowed.



--
Andrew Welch
http://andrewjwelch.com

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help