Hi Johan,

IMHO, you have 2 alternatives:

 1/ a preprocess stage that splits your XML, before the XSLT transformation.

    That can be made using DOM + XPATH expression.


 2/ a post-process stage that splits your PDF.
    There is a lot of tools to do that (googlelize "split pdf").

Pascal

> -----Message d'origine-----
> De : Johan Johansson [mailto:[EMAIL PROTECTED] 
> Envoyé : mardi 3 avril 2007 09:18
> À : [email protected]
> Objet : Creating multiple pdf files.
> 
> Hi!
>  
> Is it possible to create multiple pdf files?
>  
> I want to have one pdf file every time it starts over on page 
> 1 <fo:page-sequence master-reference="{$faktura}" 
> force-page-count="even" initial-page-number="1"> 
>  
> So for every faktura or samlingsfaktura i want to have one 
> pdf, cause they can contain multiple pages.
> I tried to figure out how to make multiple page coutings but 
> with out luck.
>  
> Exampel code:
>   <!-- Börja loopa fakturorna -->
>   <xsl:for-each select="fakturor/fakturabunt/faktura | 
> fakturor/fakturabunt/samlingsfaktura">
>    <!-- 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">  


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

Reply via email to