Hi Georg,
 
Thanks for the response.
 
>>> Are you sure your transformation is correct?
Yes, it works well for smaller files.
 
>>> Did you check whether the missing data is still there after transforming 
>>> your XML, before you generate a PDF?
The missing data is still there. On closer look, I think that my xsl file is 
not executing the if-statement: <xsl:if 
test*=/"count(ROOT/MEM-STMT/ACC/PROV)=20"/, which could only mean that the 
if-condition is always false.
 
Regards,
Kamo
 


________________________________

From: Georg Datterl <georg.datt...@geneon.de>
To: "fop-users@xmlgraphics.apache.org" <fop-users@xmlgraphics.apache.org>; 
KAMOHELO MOFOKENG <kamohelo2...@yahoo.com>
Sent: Monday, November 7, 2011 4:22 PM
Subject: AW: Multiple Page Sequences

Hi Kamohelo,
 
Are you sure your transformation is correct? Did you check whether the missing 
data is still there after transforming your XML, before you generate a PDF?
 
Mit freundlichen Grüßen
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 
 
Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                      www.willmy.de
Willmy Consult & Content GmbH:               www.willmycc.de
 
Von:KAMOHELO MOFOKENG [mailto:kamohelo2...@yahoo.com] 
Gesendet: Montag, 7. November 2011 15:19
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Multiple Page Sequences
 
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 <rsarg...@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-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to