Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

An XSL stylesheet is an XML document, so it can have a DOCTYPE and be subject to validation, right?

0
Posted

An XSL stylesheet is an XML document, so it can have a DOCTYPE and be subject to validation, right?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.