Patent attributes
A computer system conditionally processes a template document to produce one or more finished documents. Annotations in the template document are identified, each annotation indicating an instruction name and a portion of the template document to which the annotation is applied. The template document is processed using one or more structured data feeds that indicate, for each annotation, instructions for transforming the portion of the template document associated with the annotation, wherein the instructions are indicated by the instruction name of the annotation. Finished documents are generated by executing the instructions to transform the template document into each finished document, wherein transforming includes: replacing data in the template document, adding data to the template document, and removing data from the template document. Embodiments of the present invention further include a method and program product for conditionally processing content in an annotated document in substantially the same manner described above.