Hi,
I am using the following error while trying to conver to pdf....

Caused by: org.apache.fop.apps.FOPException: Premature end of file.
        at org.apache.fop.apps.Driver.render(Unknown Source)
        at org.apache.fop.apps.Driver.run(Unknown Source)
        at com.ctb.monarch.framework.transformer.PDFTransformer.generatePDFFromFO(PDFTransformer.java:158)
The xsl:fo is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
     xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                        <fo:layout-master-set>
                                <fo:simple-page-master master-name="main">
                                        <fo:region-body></fo:region-body>
                                </fo:simple-page-master>
                        </fo:layout-master-set>
                        <fo:page-sequence master-reference="main">
                                <fo:flow flow-name="xsl-region-body">
                                        <xsl:for-each select="item">
                                                <xsl:call-template name="item" />
                                                <fo:block break-before="page"></fo:block>
                                        </xsl:for-each>
                                </fo:flow>
                        </fo:page-sequence>
        </fo:root>        
        <xsl:template match = "item">
                 <fo:block font-size="9pt"
                                                         font-family="sans-serif"
                                                         line-height="10pt"
                                                         text-align="start"
                                                         start-indent="1cm">
                         <xsl:value-of select="."/>
                 </fo:block>
        </xsl:template>
</xsl:stylesheet>
Please tell me where I am going wrong....
Warm Regards,
Sujoy Banerjee
Tata Consultancy Services Limited
Plot  B-1, Block EP & GP
Sector - V, Salt Lake Electronics Complex
Kolkata - 700 091,West Bengal
India
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

Reply via email to