Patent ID: 7191395

Claim:
A method in a data processing system for enacting changes to a document containing a template-based program that transforms tree-structured data from a first tree-structured data into a second free-structured data, said method comprising: providing a first user interface to permit selection of a document containing said template-based program and a document including the first tree-structured data; wherein the first user interface constructs a model of the second tree-structured data of the first tree-structured data, based on said template-based program; displaying a representation of said model to a user at a second user interface; wherein the second user interface allows viewing said model and allows manipulations to elements within said model; parsing elements of said model into a corresponding logical construct comprising a match condition and at least one generator, said match condition for determining whether an element in said first tree-structured data is to be processed by one or more of said at least one generator; and automatically updating said document containing said template-based program to reflect said manipulations of said model elements.