This project has moved and is read-only. For the latest updates, please go here.

Writing Word XML

Apr 20, 2007 at 11:39 PM
I'd like to add Word XML as another output format. The table of contents would become a Word table of contents. The keywords would become a Word index. Images would be embedded in the .xml. The style sheet would need to be recreated as Word styles.

Instead of transforming each document obtained from the Content Service into conforming .html files, I'd have to write a transform to make each document look like a Word XML fragment. Then I'd walk through the TOC to put the fragments back into order, add some header and footer info, base64 encode all of the images, add bookmarks and hyperlink to them, and write the whole thing out.