XML file --> Word document

H

Humphrey

I have been searching the web and manuals for some months now trying to find
a simple method of creating a Word document from an XML file. The file was
created in InfoPath and is a three tiered XML file.
Most instruction sets read 1. Take XML file, 2. (Miracle occurs) 3. Open XSD
file. 4. Use it to generate your Word doc.
Now I know I'm not stupid but I cannot get the process of creating the XSD
and XSLT files required to use in Word. Can someone please point me to a
definitive source of information on how the generate this stuff so I can put
this project to bed once ond for all?
There are 400 XML documents all following the same schema that need to be
converted, so I ain't doing it one by one.

H
 
P

Peter Jamieson

1. The xslt has to generate valid WordProcessingML. (Actually it is
possible that it can generate HTML but I forget) You should not need a
..xsd to do the transformation

2. When you open the .xml file manually, click the dropdown at theright
of the Open button, and select Open With Transform. Then you get to
select the transform.

Do you have the WordprocessingML Transform Inference tool?

It can be downloaded from
http://www.microsoft.com/downloads/...4E-61D9-4F16-9B18-223EC626080E&displaylang=en

It is a long time since I did this but I found that in order to simplify
the transform I had to work quite hard to discover what could and could
not be omitted from the WordProcessingML.

As for a definitive reference, I don't know of one, but if you happen to
read German and can get hold of a copy of Word-Programmierung: Das
Handbuch, by Cindy Meister, Thomas Gahler, Christian Freßdorf and Peter
Jamieson, there is a reasonably good description of some of the Word
2003 XML-related techniques.

Peter Jamieson


http://tips.pjmsn.me.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top