1. A method for generating a representation of a document from extensible Markup Language (XML) code describing the document, comprising: substitution-processing the XML code describing the document to generate substitution-processed XML code; composition-processing the substitution-processed XML code to generate composition-processed XML code; imposition-processing the composition-processed XML code to generate imposition-processed XML code; and generating, based on the imposition-processed XML code, the representation of the document using a page description language.