8. The method of claim 7 , wherein conditioning the document processing program to facilitate programmatic analysis comprises: generating a complete stylesheet; removing any reverse path use from the processing program; desugaring alternative equivalent expressions to one canonical form; converting implied actions to explicit actions; and assigning a unique identification to each template.
8. The method of claim 7 , wherein conditioning the document processing program to facilitate programmatic analysis comprises: generating a complete stylesheet; removing any reverse path use from the processing program; desugaring alternative equivalent expressions to one canonical form; converting implied actions to explicit actions; and assigning a unique identification to each template. 9. The method of claim 8 , wherein generating the complete stylesheet comprises: evaluating all includes and imports; and applying all modes, template priorities and import precedences.