W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2005

How to use page-number in xsl:if

From: Buchinger Christian <Christian.Buchinger@patent.bmvit.gv.at>
Date: Fri, 2 Dec 2005 13:26:10 +0100
Message-ID: <A72E572136C44D41BEAF29384CDCCD7FEDC95B@OEPAMXS00.intra.patentamt.at>
To: <www-xsl-fo@w3.org>
hi
 
Is it possible to use the page-number in xsl:if??
 
What i tried was to insert a blank page if the current page mod 2 = 0
because i had no other idea to start a new page-sequence on an odd page.
 
<xsl:if test="fo:page-number mod 2 = 0">
    <fo:block break-after="page">
        <xsl:text>&#xA;</xsl:text>
    </fo:block>
</xsl:if>
 
I would appreciate any ideas.
 
br
Christian
 
Received on Sunday, 4 December 2005 02:12:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT