Hi Sam, 

Shorten the FO file to the minimum size so it still contains a text block which 
should be shown and post the FO - File. Maybe then somebody will be able to 
help.

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
 
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 
-----Ursprüngliche Nachricht-----
Von: Sam Fuqua [mailto:samfu...@gmail.com] 
Gesendet: Freitag, 20. März 2009 15:39
An: fop-users@xmlgraphics.apache.org
Betreff: Empty PDF on FOP Servlet

I have a server that accepts an XML posted to it.  The Server then does an XSLT 
on the data using a server-side XSL file.  The XSLT works from the command 
line, and the server performs and proper transform to FO, but fails to render a 
proper PDF.  I have intercepted the FO and put it into the command line, where 
it creates the expected PDF, but it creates a seemingly empty PDF.  I have been 
able to get it to properly create an RFT file, but I do not want RTF, I want 
PDF.  Has anyone had this problem?
Here's my XSL:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
  xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
  xmlns:testscript="http://jazz.net/xmlns/alm/qm/v0.1/"; 
  xmlns:step="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/";
  xmlns:el="http://purl.org/dc/elements/1.1/";>

    <xsl:template match="/">
      <fo:root>
        <fo:layout-master-set>
    <fo:simple-page-master page-height="279mm" page-width="216mm" 
margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" 
master-name="PageMaster">
            <fo:region-body background-color="#EFAFAF" margin-top="20mm" 
margin-left="10mm" margin-right="10mm" margin-bottom="20mm"/>
    </fo:simple-page-master>
    </fo:layout-master-set>

    <fo:page-sequence initial-page-number="1" master-reference="PageMaster">
    <fo:flow flow-name="xsl-region-body">
          <xsl:apply-templates/>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>

    <xsl:template match="testscript:testscript">
    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format";>
        <fo:block>Testscript</fo:block>
        <fo:block>Identifier: <xsl:value-of select="el:identifier"/></fo:block>
        <fo:block>Description: <xsl:value-of 
select="el:description"/></fo:block>
        <fo:block>Title: <xsl:value-of select="el:title"/></fo:block>
    </fo:block>
    </xsl:template>

</xsl:stylesheet>
--
Sam Fuqua
ΣΝ ΘΗ 454

Reply via email to