I've recently run across a similar requirement and thought about writing to
Rich Text Format.  After looking around a bit, I saw that C1 actually had a
3rd party formatter (http://sourceforge.net/projects/jfor/) that would
transform fo to rtf.  I haven't seen any references for a port to C2, but
that would be the next step (it's been regisered as a feature request).
Until then, I'll look into what's been recommended below.

Jon


----- Original Message -----
From: "Berin Loritsch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 8:51 AM
Subject: Re: MS Word serializer


> David Brunkow wrote:
> > n

> > Can anyone tell me if there are any plans to write an MS Word
serializer?  I
> > want to conver XML to Word, not Word to XML.
>
> You have two alternatives (something I had to do in a previous job):
>
> 1) Learn MS Word XP's XML markup (probably the best solution)
> 2) Use word to open simple HTML files.
>
> I chose the second because we had a formatted text output that needed to
be
> reformatted to a Word document.  The first solution was all Visual Basic
for
> Applications (VBA), and loaded the text in and made all the
transformations
> in no less than 72 passes.  That was an 8 hour process.
>
> The second solution used C++ to convert the text to HTML in one pass, load
the
> HTML document in Word, and apply a much simpler VBA routine.  The whole
process
> was down to a couple of minutes (the text 2 html was 5 seconds).
>
> Check this out with a regular HTML file, but try changing the extention to
> ".doc" and open the page.  (Nothing fancy, just a couple <h1> and <p>
tags).
> If it opens correctly, you have your solution:  output HTML, with a Word
> mime-type.
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to