Patent ID: 7120869

Claim:
A computer-implemented method for generating a transformation document, comprising: analyzing a first document; analyzing a second document, wherein said second document comprises a plurality of data structure patterns; and automatically generating, based upon said first and second documents, a transformation document which, when processed in conjunction with said first document, gives rise to a result document that comprises a substantial portion of the plurality of data structure patterns in said second document, wherein automatically generating said transformation document comprises: selecting a particular data structure pattern from said plurality of data structure patterns in said second document; determining whether said first document comprises a matching data structure pattern that matches said particular data structure pattern; in response to a determination that said first document comprises said matching data structure pattern, inserting a template comprising one or more actions into said transformation document, said template being invoked when a particular triggering data structure pattern is encountered during processing of said transformation document, and when invoked, causes said particular data structure pattern to be created in said result document: and in response to a determination that said first document does not comprise said matching data structure pattern, inserting a non-match template comprising one or more actions into said transformation document, said non-match template which indicates to a user that a triggering data structure pattern needs to be specified for said non-match template, said non-match template, if invoked, causing said particular data structure pattern to be created in said result document.