Hi I am not sure if this might help you but look at this post
http://www.stylusstudio.com/xsllist/200412/post70260.html

On 3/28/07, Johan Johansson <[EMAIL PROTECTED]> wrote:

 Sorry for my last mail, i hit the send short-key by misstake.


Is there any way to count pages with the fop except from the
<fo:page-number/> ?

Because i do it like this:

   <xsl:for-each select="fakturor/fakturabunt/faktura">
   <!-- Definera variabeln och sätt värde beroende på inbet.kort eller ej
-->
   <xsl:variable name="faktura">
    <xsl:choose>
     <xsl:when test="skrivbetkort = '1'">faktura</xsl:when>
     <xsl:otherwise>faktura-helkropp</xsl:otherwise>
    </xsl:choose>
   </xsl:variable>
   <xsl:variable name="flow-height">
    <xsl:choose>
     <xsl:when test="skrivbetkort = '1'">8</xsl:when>
     <xsl:otherwise>17</xsl:otherwise>
    </xsl:choose>
   </xsl:variable>

   <!-- Skapa dokument med variabel master -->
   <fo:page-sequence master-reference="{$faktura}" force-page-count="even"
initial-page-number="1">

So for each faktura it will start back on number 1 so i can present amount
of pages for each <faktura>

But i also want to know how many pages the entire document is, so when i
tried to put fo:page-number in a variable it ends up being empty all the
time.

Do anyone know how to count pages that are being renderd in fop?

Reply via email to