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 "Foucault, Sebastien" <Se...@hraccess.com> on 2005/09/26 18:27:25 UTC
Performance isseus Fo:marker
Hello,
I'm running FOP 0.20.5 under Win32 and I have performance issues processing
XSL documents containing fo:marker / fo:retrieve-marker tags.
Do <fo:marker/> and <fo:retrieve-marker/> elements generate high memory
consumption as long page sequences and <fo:page-citation/> elements do ?
NB1 : My document is splitted into tiny page sequences
NB2 : My document does not content any fo:page-number-citation
NB3 : When I remove the <fo:marker/> / <fo:retrieve-marker/> the memory
consumption decreases.
<!-- This kind of page sequence is repeted many times -->
<fo:page-sequence>
<!-- Static region containing a retrieve-marker -->
<fo:static-content>
<fo:block>
...
<fo:table-cell>
<fo:block white-space-collapse="false">
<fo:retrieve-marker
retrieve-class-name="StrId0000"
retrieve-position="last-starting-within-page"
retrieve-boundary="document"/>
</fo:block>
</fo:block>
</fo:table-cell>
...
</fo:block>
</fo:static-content>
<!-- Flow containing several markers -->
<fo:flow flow-name="xsl-region-body">
....
<fo:block empty="true">
<fo:marker marker-class-name="StrId0000">
<fo:block>Coucou</fo:block>
</fo:marker>
</fo:block>
<fo:block break-before="page"/>
...
...
<fo:block empty="true">
<fo:marker marker-class-name="StrId0000">
<fo:block>Coucou</fo:block>
</fo:marker>
</fo:block>
...
...
</fo:page-sequence>
Regards
--
Sébastien FOUCAULT
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Performance isseus Fo:marker
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Foucault, Sebastien wrote:
> I'm running FOP 0.20.5 under Win32 and I have performance issues processing
> XSL documents containing fo:marker / fo:retrieve-marker tags.
> Do <fo:marker/> and <fo:retrieve-marker/> elements generate high memory
> consumption as long page sequences and <fo:page-citation/> elements do ?
I don't think so.
> NB1 : My document is splitted into tiny page sequences
> NB2 : My document does not content any fo:page-number-citation
> NB3 : When I remove the <fo:marker/> / <fo:retrieve-marker/> the memory
> consumption decreases.
If you have lots of fo:marker elements, they will take a lot of
space just by themselves. Not that all marker content is always kept
until the whole input is rendered, so splitting the content into
many small page sequences wont help.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: determine if block is before page-break
Posted by JB...@s-s-t.com.
There's no way to detect it, but there is a way to prevent it from
happening: Wrap those middle three blocks in a table, with each block
going into its own row (and cell). Then specify keep-together on all the
rows. Depending on your XSLT code, this can take some extra effort.
Sometimes, you'll need to use predicates such as [position()=last()] to
get the blocks you want to put in the table.
I understand that the upcoming version will support keeps on blocks, which
will provide a simpler solution.
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Services)
Prakash R <ra...@yahoo.com>
09/27/2005 04:07 AM
Please respond to
fop-users@xmlgraphics.apache.org
To
fop-users@xmlgraphics.apache.org
cc
Subject
determine if block is before page-break
I have the following fo:
<fo:block>123</fo:block>
<fo:block>xyz</fo:block>
<fo:block><fo:leader/></fo:block>
<fo:block>abc</fo:block>
<fo:block>def</fo:block>
I want to put the leader only if it is not followed by
a page break. Is there a way to determine if fo:leader
is followed by page break?
Thank you.
Prakash
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
determine if block is before page-break
Posted by Prakash R <ra...@yahoo.com>.
I have the following fo:
<fo:block>123</fo:block>
<fo:block>xyz</fo:block>
<fo:block><fo:leader/></fo:block>
<fo:block>abc</fo:block>
<fo:block>def</fo:block>
I want to put the leader only if it is not followed by
a page break. Is there a way to determine if fo:leader
is followed by page break?
Thank you.
Prakash
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org