You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Samir Jyoti <sa...@acevaidc.com> on 2005/06/29 12:32:39 UTC

TraxInputHandler returns blank document - ONLY on AIX OS only

This is happening on AIX machine only. During XML/XSL based transformation
into PDF.

FOP version: 0.20.5
OS: IBM Aix 5.3
JAVA: version "1.4.2"

during the following code:

TraxInputHandler inputHandler =
            new TraxInputHandler(new InputSource (xmlInputStream),
                                 new InputSource(xslStream));
            //do the XSLT
            inputHandler.run(m_driver);
            byte[]  recv = pdfBytes.toByteArray();
            if(recv!=null){
             System.out.println(" BYTES CONVERTED: " + recv.length);
            }

The bytes returned are very less (around 800 KB as opposed to around 6000K
on other OSs). It produces a blank document of one page. Its working fine on
very other OS.

I am attaching the XML and XSL with this e-mail.

Is this a Bug?

thanks,

Samir

Re: TraxInputHandler returns blank document - ONLY on AIX OS only

Posted by Jeremias Maerki <de...@greenmail.ch>.
Almost certainly not a FOP bug anyway if it works on other platforms. If
anything, it's a problem with your stylesheet, not a FOP problem. I've
seen that your stylesheet contains references to Java classes. Make sure
they are also properly accessible in the classpath and that you're using
the same XSLT processor version as on the other platforms. Maybe the
version on AIX doesn't support the kind of extensions you're using in
your stylesheet.

Try running the XSLT process on AIX on the command-line (create just the
FO file, without FOP) to get more hints about what's wrong.

On 29.06.2005 12:32:39 Samir Jyoti wrote:
> This is happening on AIX machine only. During XML/XSL based transformation
> into PDF.
> 
> FOP version: 0.20.5
> OS: IBM Aix 5.3
> JAVA: version "1.4.2"
> 
> during the following code:
> 
> TraxInputHandler inputHandler =
>             new TraxInputHandler(new InputSource (xmlInputStream),
>                                  new InputSource(xslStream));
>             //do the XSLT
>             inputHandler.run(m_driver);
>             byte[]  recv = pdfBytes.toByteArray();
>             if(recv!=null){
>              System.out.println(" BYTES CONVERTED: " + recv.length);
>             }
> 
> The bytes returned are very less (around 800 KB as opposed to around 6000K
> on other OSs). It produces a blank document of one page. Its working fine on
> very other OS.
> 
> I am attaching the XML and XSL with this e-mail.
> 
> Is this a Bug?
> 
> thanks,
> 
> Samir



Jeremias Maerki


Re: TraxInputHandler returns blank document - ONLY on AIX OS only

Posted by je...@sanmargroup.com.
Samir,

When I tried in WIN98 i am getting the error as depicted below..


C:\fop-0.20.5>FOP -xsl xsl.txt -xml xml.txt -pdf tt.pdf
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[ERROR] javax.xml.transform.TransformerException: Instance method call to 
method
 getInstance requires an Object instance as first argument

C:\fop-0.20.5>

Regards
Eugene