How do I validate an XSL stylesheet?
An XSL stylesheet is an XML document, so it can have a DOCTYPE and be subject to validation, right? The XSLT Recommendation includes a DTD Fragment for XSL Stylesheets with some indications of what you need to do to create a complete DTD for a given stylesheet. Keep in mind that stylesheets can include literal result elements and produce output that is not valid XML. You can use the xsl:stylesheet doctype defined in xsl-html40s.dtd for stylesheets that generate HTML.