How to attach xml data to word

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a word template. Created a xsd. In the word template I have form
fields which I have connected to the elements in xsd.
Now I create a xml of data.
How do I merge the word template and the data?
The idea is , using the same template one can input different sets of data
and it can be printed. It is suppose to be in the application, but I am
trying it manually... make sense?
 
Hi =?Utf-8?B?aG9wZQ==?=,
I have a word template. Created a xsd. In the word template I have form
fields which I have connected to the elements in xsd.
Now I create a xml of data.
How do I merge the word template and the data?
The idea is , using the same template one can input different sets of data
and it can be printed. It is suppose to be in the application, but I am
trying it manually... make sense?
Makes some sense, if I'm understanding you correctly. However, the XML in
Word wasn't designed with this scenario in mind. You'd have to use an XSLT
(transform) to accomplish what you describe. The XML transform can be linked
to the schema. In the XML Schemas tab of Tools/Templates and Add-ins, click
the Schema Library button. Select the schema. Now click the "Add Solution"
button in the bottom half of the dialog box to select the transform to
associate with the schema. The user can then choose this from a list when
opening a document linked to the schema. Or, you can set it as the default.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Back
Top