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:rootxmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:call-template
name="LAYOUT"/> <xsl:choose> <fo:declarations> <xsl:if
test="count(ROOT/MEM-STMT/ACC/PROV) <
20"> <xsl:call-template
name="MEM-TOTALS"/> <xsl:call-template
name="F-OTHER"/> <xsl:call-template
name="DUE"/> <xsl:call-template
name="REASON"/> <fo:page-sequencemaster-reference="pre-print"> <fo:static-content <fo:block> <xsl:call-template
name="HEADER"/> </fo:static-content> <fo:static-content <fo:blocktext-align="center"> <xsl:call-template
name="FOOT"/>
</fo:static-content> <fo:flowflow-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:flow></fo:page-sequence></xsl:when><xsl:otherwise><fo:page-sequencemaster-reference="global"><fo:static-contentflow-name="xsl-region-before-first"><fo:block> <xsl:call-template
name="HEADER"/></fo:block></fo:static-content><fo:static-contentflow-name="xsl-region-after"><fo:blocktext-align="center"><xsl:call-template
name="FOOT"/></fo:block></fo:static-content><fo:flowflow-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 </fo:block> </fo:block> flow-name="xsl-region-after"> </fo:block> flow-name="xsl-region-before-first"> </xsl:if> </fo:declarations> <xsl:call-template
name="PROVIDER"/> <xsl:when test="ROOT/MEM-STMT/COUNTRY ='MU'">
<