Hi Rob, Much appreciation for the response. >>> 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? 1.6MB (this is when I use either XMLSpy or test_print_pdf). Yes, the process completes without an error. >>> Is the document simply truncated or does it miss particular pieces of >>> content? It misses pieces of content, specifically PROVIDER list. >>> How you looked at the resultant fo file (output of xsl transformation)? I don't quite understand your question. The resultant file is a pdf so I'm using acrobat reader to view it.
Regards, Kamohelo ________________________________ From: Rob Sargent <[email protected]> To: [email protected] Sent: Monday, November 7, 2011 3:25 PM Subject: Re: Multiple Page Sequences 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) < > 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: [email protected] For additional commands, e-mail: [email protected]
