title: XSLT fails to add DOCTYPE using xs:output
body: <p>I'm using XSLT to create a HTML output page. I need to add a doctype to the output page.
  I googled and this seems to be able to get it working:</p>
  
  <pre><code>&lt;xsl:output 
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
  /&gt;
  </code></pre>
  
  <p>So I added it to a test transformation file, transform.xsl: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt;
  
  &lt;xsl:output 
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
  /&gt;
  
  &lt;xsl:template match="/"&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  content!
  &lt;/body&gt;
  &lt;/html&gt; 
  
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>But the output HTML does not contain a doctype... . The rest of the example ... comes out fine.</p>
  
  <p>What am I doing wrong, why isn't the doctype added?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: problem solved, I'm using eXist and it seems the xsl:output instruction will not work, the solution: <a href="http://markmail.org/thread/te3qf466jvcxqvqg" rel="nofollow">mailing list</a></p>