RE: MS Word serializer

2001-08-20 Thread Chris Bermillo

The challenge with converting XML to Word lies in the serializer's ability
to interpret the tags into Word "objects".  How does a serializer interpret
the tag, ?  Is it a paragraph? Is it a field?  Is it a bookmark?  Is
it bold?  Is it italic?  etc...  These are the questions that the serializer
must answer and in all likelihood the XML will not provide any answers to.

The answer lies in a transformation of the XML into output XML that the
serializer can understand and interpret.  This does put the burden on the
intermediate transformation, but it allows the serializer to convert any and
all XML to Word.

BTW, we do have a product that converts XML to Word, Author wX.  It uses the
same concept I described above to do this.

Regards,

Chris
www.b-bop.com

-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 5:52 AM
To: [EMAIL PROTECTED]
Subject: Re: MS Word serializer


David Brunkow wrote:
>
> 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  and  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]>




RE: MS Word serializer

2001-08-20 Thread Max Dunn

>> Excuse me, but is there *anything* in Word XP that will facilitate
>> importing XML?  I haven't noticed such a feature.

> Word XP is _supposed_ to have XML integration.  Try exporting 
> (or saving as...) a regular Word Document as XML and examine the 
> contents.

> Keep in mind this solution is only for Word XP.

There is no "export to XML" or "Save as XML" in Word XP.  There is
output to HTML, which does contain a ton of pseudo-XML metadata, but
that is no different from Word 2000.

Back to Cocoon...

Max


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: MS Word serializer

2001-08-20 Thread Berin Loritsch

Max Dunn wrote:
> 
> >
> >> 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)
> 
> Excuse me, but is there *anything* in Word XP that will facilitate
> importing XML?  I haven't noticed such a feature.

Word XP is _supposed_ to have XML integration.  Try exporting (or
saving as...) a regular Word Document as XML and examine the contents.

Keep in mind this solution is only for Word XP.

> I think the question was how to go from XML to Word, and I don't believe
> there is anything in Word XP that does this.  Of course you could code
> VBA to write out the Word document, mapping XML context to Word styles,
> but that would be no different with the new version of Word.  Or are you
> suggesting something else?
> 
> I apologize for persisting the off-topic subject.
> 
> Max
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




RE: MS Word serializer

2001-08-20 Thread Max Dunn

> 
>> 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)

Excuse me, but is there *anything* in Word XP that will facilitate
importing XML?  I haven't noticed such a feature.  

I think the question was how to go from XML to Word, and I don't believe
there is anything in Word XP that does this.  Of course you could code
VBA to write out the Word document, mapping XML context to Word styles,
but that would be no different with the new version of Word.  Or are you
suggesting something else?

I apologize for persisting the off-topic subject.


Max


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: MS Word serializer

2001-08-20 Thread Jon Peterson

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  and 
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]>




Re: MS Word serializer

2001-08-20 Thread Berin Loritsch

David Brunkow wrote:
> 
> 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  and  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. 

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




Re: MS Word serializer

2001-08-18 Thread giacomo

On Fri, 17 Aug 2001, David Brunkow wrote:

> 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.

Haven't heard anybody will write something like that.

Giacomo


-
Please check that your question has not already been answered in the
FAQ before posting. 

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