title: Set HTML5 doctype with XSLT
body: <p>How would I <em>cleanly</em> set the doctype of a file to HTML5 <code>&lt;!DOCTYPE html&gt;</code> via XSLT (in this case with <a href="http://pypi.python.org/pypi/xdv#inline-xsl-directives" rel="noreferrer">collective.xdv</a>)</p>
  
  <p>The following, which is the best my Google foo has been able to find:</p>
  
  <pre><code>&lt;xsl:output
      method="html"
      doctype-public="XSLT-compat"
      omit-xml-declaration="yes"
      encoding="UTF-8"
      indent="yes" /&gt;
  </code></pre>
  
  <p>produces:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "XSLT-compat" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  </code></pre>