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 15:38:23 GMT


On 11/07/2011 07:18 AM, KAMOHELO MOFOKENG wrote:
> 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.
Then you xsl is not transforming that data (not copying the content from
the source to the fo file) which is then renderered as pdf.  The "fo
file" is an xml file with you content wrapped in fo directives.  The
renderer then uses that to make a pdf (or richtext or...)

>  
> >>> 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 <rsargent@xmission.com>
> *To:* fop-users@xmlgraphics.apache.org
> *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)
> &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
> <mailto:fop-users-unsubscribe@xmlgraphics.apache.org>
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> <mailto:fop-users-help@xmlgraphics.apache.org>
>
>
>

Mime
View raw message