将XHTML转换为Word ML
问题描述:
将单词HTML转换为单词XML的最佳方法是什么?我无法购买工具,因此需要最好是XSLT的东西,它是免费的,并且适合段落,列表,粗体和斜体等基本格式.
What is the best way to convert word HTML to word XML? I cannot buy a tool so need something preferably XSLT which is free and works suitably with basic formatting like paragraphs, lists, bold and italic.
答
Stephane Bouillon wrote a blog about this over on MSDN. She supplies a pretty good xslt transform that will do the job. It is designed for use with InfoPath, and only supports the XHTML tags InfoPath will produce so you may need to modify it for your specific application. But it seems to work pretty well and should give you a starting point to work off of.