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.
Related Questions
- The XSL book I read says the correct way of indicating the XSL stylesheet is by using the XML processing instruction while Cocoon is using . Who is right?
- An XSL stylesheet is an XML document, so it can have a DOCTYPE and be subject to validation, right?
- In XSL, How Can I Correctly Convert an XML Document Tag to a Link in HTML?