xsl-list
[Top] [All Lists]

Re: [xsl] inserting page-break after certain terms

2007-07-04 07:41:44
On Wed, Jul 04 2007 13:49:36 +0100, info(_at_)minimag(_dot_)de wrote:
Quoting Tony Graham <Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com>:
...
Okay. I try to be more precisely. Please excuse my "bad" English :-)

If you want "bad", you should try to get me to use a language other than
English.

The problem is that I have to program a solution for the following case.
My output should be a brochure with XML contents transformed via XSLT
to XSL-FO/PDF.

I have several "blocks" all with more or less the same structure. They
are named <section>. After <section> there are several items. My
resulting page has a print space of 180mm.

Now the problem:
I have to calculate the height of each <section> in mm (what I have
already done, stored in "&gesamt"). Afterwards I need to sum the
height of all the <section> items including their children. Now if the
height of the summation is <= 180mm I need a page-break and start the
same scenario at the following page. Sum the height, look if <= 180mm,
output, page-break. Of course I think I have to update the variable
"$gesamt".

By definition, you can't update $gesamt, though if $gesamt is not a
global variable, you could have different $gesamt at different points in
the processing.

Why aren't you just letting the XSL formatter decide where to break the
pages?

Can't you use keep-together.within-page to keep sections together?

Okay, I hope this helps more :-)

A little, but it's still unclear how you're tring to update $gesamt or
why you're not leaving page breaking up to your XSL formatter.

Regards,


Tony Graham.
======================================================================
Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com   
http://www.menteithconsulting.com

Menteith Consulting Ltd             Registered in Ireland - No. 428599
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
======================================================================

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--