Hi,

First some info about my working environment:
OS - Win2000
PHP - 4.1.1
Java - 1.3.1
(Apache - 1.3.22)

> are you sure you did everything right with the java/php combination? did
> you test that with other, easier things?
I've modified the php.ini (and http.conf) to be able to call java from php.
All
the examples in the php-manual work correctly.

> did you test the class on the command line with success?
I am trying it first on the command line, though my aim is to use it later
as a server side script as part of  a project implemented mainly in php.

> did you read the manual of everything that is involved in your task?
I can't say I've read everything. I've read the java, classes/object
sections,
but such details are not provided in the manual.

> i could only help you until now in finding out more about the data and
> type of your object...
Code snippet of the renderXmlXsl(string,string) method:

public InputStream renderXmlXsl(String xmlSource, String xslSource) {

        ...
        /**HERE IS THE TRANSFORMATION*/
        TraxTransform tt = new TraxTransform();
        tt.transform(xmlSource, xslSource, stres);

        ...
        ByteArrayInputStream bis = null;
        ByteArrayOutputStream out = new ByteArrayOutputStream();

        /**HERE IS THE RENDERER TO PDF*/
        Driver driver = new Driver(foFile, out);
        ...
        try {
            driver.run();
        } catch (Exception ex) {
            ex.printStackTrace();
        }

        byte[] content = out.toByteArray();
        bis = new ByteArrayInputStream(content);
        ...
        /**RETURNED java.io.ByteArrayInputStream*/
        return bis;
    }

I think I made the problem clearer.

kindly,
Bedilu


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to