Hi Kamohelo,

Maybe we are talking about different things. Your xsl-file transforms your xml 
file into a fo-file. This fo file ist then transformed to pdf by FOP. IF your 
data survived the first transformation (which I highly doubt), then it would be 
a FOP problem. If the data is already gone after the first transformation, your 
transformation is incorrect. For example, because something is always false.

Regards,

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<http://www.geneon.de>

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    
www.irs-nbg.de<http://www.irs-nbg.de>
Willmy PrintMedia GmbH:                      www.willmy.de<http://www.willmy.de>
Willmy Consult & Content GmbH:               
www.willmycc.de<http://www.willmycc.de>

Von: KAMOHELO MOFOKENG [mailto:[email protected]]
Gesendet: Montag, 7. November 2011 15:29
An: Georg Datterl; [email protected]
Betreff: Re: AW: Multiple Page Sequences

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 <[email protected]<mailto:[email protected]>>
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>; 
KAMOHELO MOFOKENG <[email protected]<mailto:[email protected]>>
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<http://www.geneon.de/>

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    
www.irs-nbg.de<http://www.irs-nbg.de/>
Willmy PrintMedia GmbH:                      
www.willmy.de<http://www.willmy.de/>
Willmy Consult & Content GmbH:               
www.willmycc.de<http://www.willmycc.de/>

Von: KAMOHELO MOFOKENG [mailto:[email protected]]
Gesendet: Montag, 7. November 2011 15:19
An: [email protected]<mailto:[email protected]>
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 <[email protected]<mailto:[email protected]>>
To: [email protected]<mailto:[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) &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: 
[email protected]<mailto:[email protected]>
For additional commands, e-mail: 
[email protected]<mailto:[email protected]>




Reply via email to