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 Ne...@sanofi-aventis.com on 2005/03/01 16:36:23 UTC

fo:flow must contain block-level children




I get the following error
      fo:flow must contain block-level children
when I don't have the matching elements in my xml by using the following
code generates the error.

<fo:page-sequence master-reference="page3">
    <fo:flow flow-name="body3">
      <xsl:apply-templates select="CodeDecode">
      </xsl:apply-templates>
   </fo:flow>
</fo:page-sequence>

If I replace the above code with the code below I get an extra blank page
and I want to suppress this blank page

<fo:page-sequence master-reference="page3">
    <fo:flow flow-name="body3">
      <fo:block>
      <xsl:apply-templates select="CodeDecode">
      </xsl:apply-templates>
      </fo:block>
   </fo:flow>
</fo:page-sequence>

Thanks

-Neeru

----------------------------------------------------------
Le présent message ainsi que ses éventuelles pièces jointes est
exclusivement destiné au(x) destinataire(s), personnes physiques ou
morales, qu'il désigne.
Il constitue de ce fait une correspondance à caractère privé et peut
contenir des informations confidentielles.
Si ce message vous est parvenu par erreur, nous vous remercions d'en aviser
immédiatement l'expéditeur par retour de courrier électronique puis de le
détruire, ainsi que ses éventuelles pièces jointes, sans en conserver de
copie.


This message, including any attachment, is intended for the use of the
individual or entity to which it is addressed.
It is therefore to be considered as a private correspondence which may
contain confidential information.
If you are not the intended recipient, please advise the sender immediately
by reply e.mail and delete this message and any attachment thereto without
retaining a copy.
----------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: fo:flow must contain block-level children

Posted by Glen Mazza <gr...@yahoo.com>.
The problem I think is with your XSLT--you should not
output an fo:page-sequence if you have no block-level
children to generate to begin with.

I'm not an XSLT guru, but I don't think it is that
hard to do.  Would anyone have a sample?

Thanks,
Glen


--- Neeru.Bhardwaj@sanofi-aventis.com wrote:

> 
> 
> 
> 
> I get the following error
>       fo:flow must contain block-level children
> when I don't have the matching elements in my xml by
> using the following
> code generates the error.
> 
> <fo:page-sequence master-reference="page3">
>     <fo:flow flow-name="body3">
>       <xsl:apply-templates select="CodeDecode">
>       </xsl:apply-templates>
>    </fo:flow>
> </fo:page-sequence>
> 
> If I replace the above code with the code below I
> get an extra blank page
> and I want to suppress this blank page
> 
> <fo:page-sequence master-reference="page3">
>     <fo:flow flow-name="body3">
>       <fo:block>
>       <xsl:apply-templates select="CodeDecode">
>       </xsl:apply-templates>
>       </fo:block>
>    </fo:flow>
> </fo:page-sequence>
> 
> Thanks
> 
> -Neeru
> 
>
----------------------------------------------------------
> Le pr�sent message ainsi que ses �ventuelles pi�ces
> jointes est
> exclusivement destin� au(x) destinataire(s),
> personnes physiques ou
> morales, qu'il d�signe.
> Il constitue de ce fait une correspondance �
> caract�re priv� et peut
> contenir des informations confidentielles.
> Si ce message vous est parvenu par erreur, nous vous
> remercions d'en aviser
> imm�diatement l'exp�diteur par retour de courrier
> �lectronique puis de le
> d�truire, ainsi que ses �ventuelles pi�ces jointes,
> sans en conserver de
> copie.
> 
> 
> This message, including any attachment, is intended
> for the use of the
> individual or entity to which it is addressed.
> It is therefore to be considered as a private
> correspondence which may
> contain confidential information.
> If you are not the intended recipient, please advise
> the sender immediately
> by reply e.mail and delete this message and any
> attachment thereto without
> retaining a copy.
>
----------------------------------------------------------
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org