RE: Using Fop Within An Application (AWTStarter with some changes)

2002-02-15 Thread Jim Urban

> awt.run(new File("xml"), new File("xsl"));
This line presents a problem for me.  I no have files.  All I have is a
String containing the FO which I received from a call to the server.  Tthe
server runs xml data retrieved from a database through xslt and returns the
output FO to the client for displaying.  I need to process the string
containing the FO and display the results in a window.

Jim

> -Original Message-
> From: IvanLatysh [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 3:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Using Fop Within An Application (AWTStarter with some
> changes)
>
>
> Hello, Jim!
> You wrote to "FOP Dev" <[EMAIL PROTECTED]> on Fri, 15 Feb
> 2002 14:15:13 -0600:
>
>  JU> I am trying to use FOP within my application to process and display
>  JU> (in AWT mode) a FO I create by processing records from a database.
>  JU> I get to the point where I have a String object containing the FO
>  JU> but I can't seem to get
>
> You know some times ago I did have same problem.
> And I did some changes in AWTStarter class. I attach this file.
> Also I am using small library to convert SQL Query to XML file.
> Seems working fine.
>
> How to use:
>
> AWTStarter awt = new AWTStarter();
> awt.run(new File("xml"), new File("xsl"));
>
> This starter working with FOP. You shouldn't make any changes in FOP.
>
> 2 Developers:
> If I did brake any License agreements please let me know.
> I just want to help.
>
> ---
> Yours sincerely, Ivan Latysh.
> [EMAIL PROTECTED]
> http://ivan.yourmail.com
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Using Fop Within An Application (AWTStarter with some changes)

2002-02-15 Thread IvanLatysh

Hello, Jim!
You wrote to "FOP Dev" <[EMAIL PROTECTED]> on Fri, 15 Feb 2002 14:15:13 -0600:

 JU> I am trying to use FOP within my application to process and display
 JU> (in AWT mode) a FO I create by processing records from a database. 
 JU> I get to the point where I have a String object containing the FO
 JU> but I can't seem to get

You know some times ago I did have same problem.
And I did some changes in AWTStarter class. I attach this file.
Also I am using small library to convert SQL Query to XML file.
Seems working fine.

How to use:

AWTStarter awt = new AWTStarter();
awt.run(new File("xml"), new File("xsl"));

This starter working with FOP. You shouldn't make any changes in FOP.

2 Developers:
If I did brake any License agreements please let me know.
I just want to help.

---
Yours sincerely, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com



AWTStarter.java
Description: Binary data

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Using Fop Within An Application

2002-02-15 Thread Jim Urban

I am trying to use FOP within my application to process and display (in AWT
mode) a FO I create by processing records from a database.  I get to the
point where I have a String object containing the FO but I can't seem to get
FOP to display its AWT window.  Could someone please pass along some source
code that shows how to do this?  I looked at the doc and the example is
incomplete:

Driver driver = new Driver();
driver.setRenderer(new org.apache.fop.render.awt.AWTRenderer(translator));
driver.render(parser, fileInputSource(args[0]));

What is "translator"?  The doc I have not only doesn't show how to create
one, its written in German!
What is "parser"?  What parser do I use?  How do I create one?

Thanks for the help,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]