Hi there,
I would like to programmatically (.NET or VSTO with C#) generate xslt file from an .xml word document.
Here what I do manually:
- I attach an xsd schema to a word.doc document.
- I save the document as xWordML.xml with both data and format.
- With WML2XSLT.exe, I generate xWordML.xslt from xWordML.xml.
How can I automate the 2nd and 3rd step programmatically
- I mean saving the word doc as xml type without opening Word Application.
- Then instead of using wml2xslt.exe, generate XSLT file from the xml file programmatically.
Are there any xml classes that support this in .NET or VSTO
Thanks in advance,
Kris

How to generate XSLT file from WordProcessingML.xml word document programmatically
Arie-Jan
Q1. You should be able to load .doc to Word programmatically and use automation to save document as XML. Use http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=16&SiteID=1 forum for such questions.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Q2. You can rewrite wml2xslt.exe on XSLT but it would be simple for you to call wml2xslt programmatically from your application.