6. The method of claim 2 , wherein the determined value comprises document layout information.
2. The method of claim 1 , wherein substitution-processing further comprises: identifying, within the XML code describing the document, a variable; determining a value of the variable; and modifying the XML code describing the document by replacing the variable with the determined value.