xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Sargent <rsarg...@xmission.com>
Subject Re: Multiple Page Sequences
Date Mon, 07 Nov 2011 13:25:56 GMT
How large is the final pdf? That you do get a viewable pdf suggests that 
the process finished with out error.  Is that the case?

Is the document simply truncated or does it miss particular pieces of 
content?

How you looked at the resultant fo file (output of xsl transformation)?


KAMOHELO MOFOKENG wrote:
> Hi All,
>  
> I'm trying to create multiple page sequences during XSL-FO to PDF 
> transformation so that I don't run out of memory (in case of large xml 
> data).
>  
> Using the 
> example -> http://www.scriptorium.com/whitepapers/xslfo/xslfo_4.html, 
> I modified my XSL-FO as follows: 
>  
> **
> *<xsl:template match*=/"/"/*>*
>         <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> *        <xsl:call-template name*=/"LAYOUT"/*/>*
> *        <xsl:choose>*
> *            <xsl:when test*=/"ROOT/MEM-STMT/COUNTRY ='MU'"/*>*
>                 <fo:declarations>
> *                    <xsl:if test*=/"count(ROOT/MEM-STMT/ACC/PROV) 
> &lt; 20"/*>*
> *                        <xsl:call-template name*=/"PROVIDER"/*/>*
> *                        <**xsl:call-template name*=/"MEM-TOTALS"/*/>*
> *                        <xsl:call-template name=/"F-OTHER"/**/>*
> *                        <xsl:call-template name=/"DUE"/**/>*
> *                        <xsl:call-template name=/"REASON"/**/>*
> *                    **</xsl:if>*
>                 </fo:declarations>
>  
>     <fo:page-sequence master-reference="pre-print">
>         <fo:static-content
>             flow-name="xsl-region-before-first">
>  
>         <fo:block>
> *            <xsl:call-template name*=/"HEADER"/*/>*
>         </fo:block>
>  
>     </fo:static-content>
>  
>     <fo:static-content
>         flow-name="xsl-region-after">
>  
>     <fo:block text-align="center">
> *        <xsl:call-template name*=/"FOOT"/*/>*
>     </fo:block>
>  
>     </fo:static-content>
>  
>     <fo:flow flow-name="xsl-region-body">
>  
>     <fo:block>
> *        <xsl:choose>*
> *            <xsl:when test*=/"ROOT/MEM-STMT/FIN-BAL/FIN-BAMT !='0'"/*>*
>                 <fo:block>
> *                    <xsl:call-template name*=/"FIN-BAL"/*/>*
>                 </fo:block>
> *            </xsl:when>*
> *        </xsl:choose>*
> *        <xsl:call-template name*=/"PROVIDER"/*/>*
> *        <xsl:call-template name*=/"MEM-TOTALS"/*/>*
> *        <xsl:call-template name*=/"F-OTHER"/*/>*
> *        <xsl:call-template name*=/"DUE"/*/>*
> *        <xsl:call-template name*=/"REASON"/*/>*
> </fo:block>
>  
> </fo:flow>
> </fo:page-sequence>
> *</xsl:when>*
>  
> *<xsl:otherwise>*
> <fo:page-sequence master-reference="global">
> <fo:static-content
> flow-name="xsl-region-before-first">
>  
> <fo:block>
> *    <xsl:call-template name*=/"HEADER"/*/>*
> </fo:block>
>  
> </fo:static-content>
>  
> <fo:static-content
> flow-name="xsl-region-after">
>  
> <fo:block text-align="center">
> *<xsl:call-template name*=/"FOOT"/*/>*
> </fo:block>
> </fo:static-content>
> <fo:flow flow-name="xsl-region-body">
> <fo:block>
> *<xsl:choose>*
> *<xsl:when test*=/"ROOT/MEM-STMT/FIN-BAL/FIN-BAMT !='0'"/*>*
> <fo:block>
> *<xsl:call-template name*=/"FIN-BAL"/*/>*
> </fo:block>
> *</xsl:when>*
> *</xsl:choose>*
> *<xsl:if test*=/"count(ROOT/MEM-STMT/ACC/PROV)=20"/*>*
> *<xsl:call-template name*=/"PROVIDER"/*/>*
> *<xsl:call-template name*=/"MEM-TOTALS"/*/>*
> *<xsl:call-template name*=/"F-OTHER"/*/>*
> *<xsl:call-template name*=/"DUE"/*/>*
> *<xsl:call-template name*=/"REASON"/*/>*
> *</xsl:if>*
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> *</xsl:otherwise>*
> *</xsl:choose>*
> </fo:root>
> **
> *</**xsl:template>*
>  
> The transformation works but FOP doesn't print all the pages of the 
> resultant pdf file (prints 94 instead of 307).
>  
> How should I change my XSL-FO to make FOP print all pages?
>  
> Any help is appreciated.
>  
> Regards,
> Kamo

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message