Using Word to create XSLT
Posted on 2007-04-11
I want to know if there is a way to create the xslt file needed to transform my XML data into a Word document using Word itself....and how to do it.
I control the data. My clients will want the ability to create their own merge letters and documents. Because of the flat nature of Word Mail Merge, it appears that I will need to either use Automation, or XSLT. I would rather use the latter if possible.
I can provide the schema for Word, and the user can create their document dropping in the tags. I can have them save it as XML. Is there a way that I can take that saved Word XML document and turn it into xslt. Not a problem if it has to be done programmatically, I can write that, but I don't want the users to have to go through and create their own xslt. Or is there a way to save a Word document or template as xslt then use it on my xml data.
And to add to the mix, this has to work in 2003 or 2007.