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 "J.Pietschmann" <j3...@yahoo.de> on 2004/01/29 20:47:16 UTC

Re: differences in fop command line

fopuser@rajendran.com wrote:
> When I executed the command line using "fop -xsl this.xsl -xml this.xml -pdf 
> this.pdf", I don't get the error message " some content cannot fit into static 
> area".
>  But When you merge this xml and xsl using xalan.bat to formatting objects and 
> convert the generated fo using command line "fop this.fo -pdf this.pdf" , I see 
> the error. 
> 
> I removed the attribute indent="yes" in xsl:output from the stylesheet, then 
> this works fine both ways. 

If you create the intermediate FO as file, the XML document is serialized,
and the indent="yes" in the style sheet takes effect. The spec warns, for
good reason, that indent="yes" may insert significant whitespace into the
file, or in other words: you may get something else than what you think you
should get. It is strongly discouraged to use indent="yes" for XML which
may contain mixed element content, such as XSLFO.

If you tell the FOP CLI to use the XML and XSL directly, no intermediate
serialization takes place, the transformation result is fed directly into
the rendering engine. In this case none of the settings in xsl:output has
any effect at all (and neither has disable-output-escaping).

J.Pietschmann


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


Re: differences in fop command line

Posted by fo...@rajendran.com.
Quoting "J.Pietschmann" <j3...@yahoo.de>:

> fopuser@rajendran.com wrote:
> > When I executed the command line using "fop -xsl this.xsl -xml this.xml
> -pdf 
> > this.pdf", I don't get the error message " some content cannot fit into
> static 
> > area".
> >  But When you merge this xml and xsl using xalan.bat to formatting objects
> and 
> > convert the generated fo using command line "fop this.fo -pdf this.pdf" , I
> see 
> > the error. 
> > 
> > I removed the attribute indent="yes" in xsl:output from the stylesheet,
> then 
> > this works fine both ways. 
> 
> If you create the intermediate FO as file, the XML document is serialized,
> and the indent="yes" in the style sheet takes effect. The spec warns, for
> good reason, that indent="yes" may insert significant whitespace into the
> file, or in other words: you may get something else than what you think you
> should get. It is strongly discouraged to use indent="yes" for XML which
> may contain mixed element content, such as XSLFO.
> 
> If you tell the FOP CLI to use the XML and XSL directly, no intermediate
> serialization takes place, the transformation result is fed directly into
> the rendering engine. In this case none of the settings in xsl:output has
> any effect at all (and neither has disable-output-escaping).
> 
> J.Pietschmann
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 

Hope other people are aware of this misuse of indent=yes attribute causing 
problems in generating the final output.

Thank you J.Pietschmann for your quick response and I appreciate your efforts 
in educating others in this and other forums( like xsl:fo yahoo). 
-Raj


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