1

I have some Microsoft Office Word file, saved as Office XML format output. I am wondering whether there are any XSLT samples which could convert Office XML format output into HTML format? Any other solutions (besides using XSLT) which could convert Office XML format output into HTML format is acceptable.

thanks in advance, George

George2
  • 44,761
  • 110
  • 317
  • 455
  • You have missed a recent SO XSLT question which is an excellent starting point. Have a look [here](http://stackoverflow.com/questions/6297606/convert-ooxml-inline-formatting-to-a-merged-element/)! – Emiliano Poggi Jun 17 '11 at 07:31

1 Answers1

2

If your collection of files is not large, then the easiest way to convert to HTML is to use Microsoft Word's save as HTML feature. If the goal is to produce HTML output, regardless of the cleanliness of the output, that's the way to go.

You can also use a recorded macro to get MS Word to convert large numbers of files.

Edit: Answering comments

I mean use Microsoft Word to open the file (using File, Open), then using File, Save As and choosing "Web Page" as the type. As for the macro, you can use this Microsoft reference for macros.

Tony Miller
  • 9,059
  • 2
  • 27
  • 46
  • "the easiest way to convert to HTML is to use Microsoft Word's save as HTML feature" -- you mean save original word into html or saveing xml into html? – George2 Jun 16 '11 at 16:14
  • "You can also use a recorded macro to get MS Word to convert large numbers of files." -- Interesting, but never did this before. Could you show me some related documents for newcomer? – George2 Jun 16 '11 at 16:15