1. A method for generating a document, comprising: (a) accessing a referencing document; (b) invoking a fragment object referenced by the referencing document, the fragment object including a first set of data corresponding to a document fragment of a source document and a second set of data corresponding to a transformation of the document fragment of the source document; (c) transforming the document fragment of the source document based on the second set of data; and (d) incorporating the transformed data into the referencing document to generate a document.