[xep-support] Running XEP from Java program

From: <gil_loureiro@iol.pt>
Date: Thu May 17 2007 - 06:16:33 PDT

Hi all,

I'm trying to run XEP from a Java program, and sucessfully do it from fo to pdf with attached code.
But, what I really need is apply a XSLT transformation over a XSL that merges a template with XML data into a fo then in a PDF; is this possible? How?

Thanks,
GLoureiro

****************************************************************

java.util.Properties props = new java.util.Properties();
        props.setProperty("CONFIG", "D:/Program Files/RenderX/XEP/xep.xml");

                
                
                
        javax.xml.transform.Source source =
        new StreamSource("D:/MeusDocs/XHTML2XSLFO/dm.fo");
        com.renderx.xep.FormatterImpl formatter =
        new com.renderx.xep.FormatterImpl(props);
        ByteArrayOutputStream baros = new ByteArrayOutputStream ();
        com.renderx.xep.FOTarget target = null;
                
        
                try {
                        target = new com.renderx.xep.FOTarget(new FileOutputStream("d:/tst.pdf"), "PDF" );
                } catch (FileNotFoundException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();

****************************************************************

_______________________________________________________________________________________
Aqueca o seu Inverno com o credito pronto a usar!
Saiba mais em http://www.iol.pt/correio/rodape.php?dst=0701181

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Thu May 17 06:54:19 2007

This archive was generated by hypermail 2.1.8 : Thu May 17 2007 - 06:54:24 PDT