I bet the dynamic XSL generation would be really a difficult thing if not
impossible. Instead I would suggest to know all the HTML tags that
FCKeditor generates. I am pretty sure it will be an almost equalent set of
normal HTML tags. And once you know the those tags, write XSL templates to
convert XML (call it XHTML or HTML in well formed XML format) generated by
FCKeditor into FOs, and finally call FOP api to generate PDF.

All the best
Sai




|---------+--------------------------------->
|         |           "Amit Chawla"         |
|         |           <[EMAIL PROTECTED]|
|         |           lasoft.com>           |
|         |                                 |
|         |           01/19/2005 02:19 PM   |
|         |           Please respond to     |
|         |           fop-user              |
|         |                                 |
|---------+--------------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                 |
  |        To:      <[EMAIL PROTECTED]>                                         
                                           |
  |        cc:                                                                  
                                                 |
  |        Subject: RE: Query                                                   
                                                 |
  
>------------------------------------------------------------------------------------------------------------------------------|



Hi Luke,
Thanks for the email reply.. actually i have seen that and what i have
understood from it i require XSL file which will transform the xml to
XSL-FO...

and what is happening in my requirement is that i have to generate HTML at
run time and then convert this HTML doc using TIdy to XML/XHTML and then
use this to generate PDF....

I was facing problem with ITEXT as they dont support all the HTML tags and
for generating PDF i had to write HTMLparser which i have done and am
successful to generate PDF .. ... but the problem is that i am using
FCKeditor as my internet editor where i can do formatting of text just like
word doc... and it returns me string of html elements .. I have used this
string to generate HTML doc and then xml.
FCKeditor generates tags and there attributes which are not supported in
ITEXT and i have to handle them in my HTML parser.  I will lose format of
text in my PDF as i am not aware what all tags and attributes FCKeditor
will generate at run time..

So i decided to shift to FOP .....  hoping that it would suffice my needs
... so my situation is i have to parse this xml document which is generated
at run time and i feel/think i will require to generate XSL at run time and
then using the example i can generate XSL-FO and then set up driver of fop
to generate PDF using FOP...

Here i m stuck as i am not getting a way to generate XSL at run time...

all help appreciated....

thanks for reply again.

regards
amit



________________________________

From: Luke Shannon [mailto:[EMAIL PROTECTED]
Sent: Thu 1/20/2005 12:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Query


Hi Amit;

I am also a newbie. I can tell you that a good place to start is the
examples section that comes with the FOP download.

Specifically the example ExampleXML2FO.java
(fop-0.20.5\examples\embedding\java\embedding).

Hope that helps,

Luke

             ----- Original Message -----
             From: Amit Chawla <mailto:[EMAIL PROTECTED]>
             To: [EMAIL PROTECTED]
             Sent: Wednesday, January 19, 2005 2:01 PM
             Subject: Query

             Hi All,

             I am a newbie to FOP and XML... I need to ask you guys that
how to generate XSL for the XML created at run time.

             and then to create XSL-FO at run time and then to pass it FOP
and generate PDF..


             If anybody could help me that will be gr8..

             thanks in advance
             rgds
             amit


(See attached file: winmail.dat)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<<attachment: winmail.dat>>

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

Reply via email to