Subject: [xsl] inserting page-break after certain terms From: Andreas Peter <info@xxxxxxxxxx> Date: Tue, 03 Jul 2007 09:38:15 +0200 |
I declared a local variable where I count the lines and convert them to [mm] to achieve the height of a certain <section> which includes several elements.
I know that the print space is 180mm high. Now I want to create a loop where I count the height of <section> until it is smaller or even than 180mm and insert a page-break afterwards.
The next step should be to check if the rest of the space is 20mm, 40mm, 60mm and so on.
<xsl:choose> <xsl:when test="180 - sum($gesamt) = 20"> <xsl:apply-templates/> </xsl:when> <xsl:when test="180 - sum($gesamt) = 40"> <xsl:apply-templates/> </xsl:when> <xsl:when test="180 - sum($gesamt) = 60"> <xsl:apply-templates/> </xsl:when> <xsl:when test="180 - sum($gesamt) = 90"> <xsl:apply-templates/> </xsl:when> </xsl:choose>
I think after the page-break the variable $gesamt should be "zero". Is this possible with ...select="0"?
Does anyone outthere have a hint for me how to solve this problem? If I use the code above I only receive one block per page.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Converting a string to a , Michael Kay | Thread | Re: [xsl] inserting page-break afte, Tony Graham |
Re: [xsl] Testing with MSXML 3.0 or, Joe Fawcett | Date | Re: [xsl] Preventing CDATA output i, Brian Koontz |
Month |