XSLT or library to convert Open XML to RTF in .net?

心不动则不痛 提交于 2019-12-11 07:25:09

问题


How can I convert Open XML to RTF in c#? I could use just an xslt to convert, just wandering if there is one already available or if there is a .net library that can do this.


回答1:


Not sure if you are aware but there is an XSLT to convert Word Open Xml to Html called

DocX2Html_IE.xslt https://openxmlviewer.svn.codeplex.com/svn/Source/OpenXMLViewer/DocX2Html_IE.xslt

Which is part of the OpenXML Document Viewer on codeplex. I've used this style sheet as a guide to creating my own Word to Html parser in c#, as I'm not a fan of giant XLST. It's not complete by any means but might help you as a starting point for creating a RTF xslt.

As a side note this project has not been updated since 2009



来源:https://stackoverflow.com/questions/7929285/xslt-or-library-to-convert-open-xml-to-rtf-in-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!