An XML document is input to first, an XML parser, then an XSD processor, then an XSL processor, and then an XML compressor.