This figure shows the original XML document, the optional DTD, and the optional Schema files as input to the parser. Parser output is then input to the DOM/SAX Parser, which also receives input from the XSL stylesheet. Parsed XSL commands and the parsed XML go to the XSLT processor, which outputs the transformed XML document.