I have word documents stored as xml on our web server
which I need to display to clients. What would be the
best way to convert/transform the documents to html so
they can viewed? The conversion/transformation needs to
be server side and I would prefer not to load microsoft
office on the server.
Thanks
Brian
Miles Archer - 16 Jan 2005 04:35 GMT
> I have word documents stored as xml on our web server
> which I need to display to clients. What would be the
[quoted text clipped - 5 lines]
> Thanks
> Brian
In Word 2003 you can hit File| New... Then on the right hand side of your
'new' document it says, "Templates". Select the second link, "On my
computer...". A new window opens. Select the tab, "Other documents" and
select "Batch Conversion Wizard".
In the "From/To" dialog, select "XML Document" in the drop down box below
"Convert from another format to Word" and hit next. In the "Folder Selection"
portion of the wizard you can select "My Network Places" and go to the folder
on the server that holds the XML files. For the Destination Folder, use a
"hold folder on your desktop.
After the conversion you will repeat the process, only this time you will
batch "Convert from Word to another format" (HTML Document), with the hold
folder as your Source Folder and the server as your Destination Folder.
Or you can dowload all the XML documents and do the conversion locally and
upload the result, which is the way I would do it so I could view the results
before upload.
mbaird - 20 Jan 2005 21:11 GMT
You can download the "Word 2003 XML Viewer". This installaton package
contains a file called "word2html.xsl". This file is installed in "C:\Program
Files\Microsoft Office\OFFICE11". You can then copy this file to your server
and add this reference to your XML files.
This package was designed to run on the Windows desktop if a person does not
have Word 2003. The XSL file will convert everything to HTML with exception
of graphics which are mime encoded in the XML. While it is not 100% it will
convert Word XML to HTML.
You could also provide the installation package to the end user to insall on
their desktop, which it has been designed for.
Mark Baird
> I have word documents stored as xml on our web server
> which I need to display to clients. What would be the
[quoted text clipped - 5 lines]
> Thanks
> Brian