XSweet is a free, open source conversion tool for converting Microsoft Word documents (.docx) into HTML and beyond.
Built as a series of XSL (eXtensible Stylesheet Language) transformation steps, it’s designed to be modular and flexible. Use it out of the box, or modify and extend it to meet your needs.
XSweet is designed with publishing in mind, but can be used for any application. XSweet extracts the contents of MS Word documents from their underlying XML into HTML, which can be published as-is, imported into an application, or used as a lingua franca to convert it into another format altogether. Beyond simple conversion to HTML, XSweet also includes a number of optional enhancement steps, including:
XSweet is a project from the Cabbage Tree Labs, conceived by Adam Hyde and co-designed with veteran XML programmer Wendell Piez. XSweet scripts were built and tested by Wendell Piez and Alex Theg. If you’d like to talk to anyone for help working with XSweet you can find us on the Coko Mattermost chat.
You can find the code here. Please see the documentation and using sections to understand how to work with XSweet.