determine if block is before page-break

2005-09-27 Thread Prakash R
I have the following fo:

fo:block123/fo:block
fo:blockxyz/fo:block
fo:blockfo:leader//fo:block
fo:blockabc/fo:block
fo:blockdef/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: determine if block is before page-break

2005-09-27 Thread JBryant
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 [EMAIL PROTECTED] 
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:block123/fo:block
fo:blockxyz/fo:block
fo:blockfo:leader//fo:block
fo:blockabc/fo:block
fo:blockdef/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]