• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Word 2003 XML Hacks > 95. Batch-Process Word Documents with XSLT

Batch-Process Word Documents with XSLT

This hack shows you how to use XSLT to compile a report containing information from several different WordprocessingML documents.

Thanks to WordprocessingML and the powers of XSLT, it is now straightforward to perform bulk processing on multiple Word documents. This particular hack is less about modifying the documents themselves (that’s covered in [Hack #96] ) than about generating a report that aggregates information from multiple Word documents. In this case, you want to extract and total all of the Word comments from a variable number of input documents. The resulting report format is just another Word document.

Say you have five Word documents in WordprocessingML format in a folder called C:\Word Documents. The files are named as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint