title: Puting attributes to the <html> root-element with xslt 2.0
body: <p>Is it possible to put a <code>xml:lang</code> or <code>lang</code> attribute to the html root-element <code>&lt;html&gt;</code> using xslt 2.0?</p>
  
  <p>The problem is, that the only allowed attributes for <code>xsl:stylesheet</code> are: <code>id</code>, <code>exclude-result-prefixes</code>, <code>extension-element-prefixes</code>, <code>version</code> and of course <code>xmlns</code>. Other attributes are being ignored by any xslt-processor.</p>
  
  <p>There must be a way to extend the element <code>&lt;html&gt;</code> I hope? </p>
  
  <p>Thanks a lot.</p>
  
  <p>Code (xhtml in this case):</p>
  
  <pre><code>&lt;xsl:stylesheet 
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
     xmlns:fn="http://www.w3.org/2005/xpath-functions"
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     xmlns:tst="http://www.ma-buwi-fh.de"
     xmlns="http://www.w3.org/1999/xhtml"
     xml:lang="de"&gt;
  
  &lt;xsl:output method="xhtml"
     encoding="UTF-8"
     indent="yes"
     doctype-public='-//W3C//DTD XHTML 1.1//EN'
     doctype-system='http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'
      /&gt;
  </code></pre>
  
  <p>The result looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
  
  &lt;html xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:fn="http://www.w3.org/2005/xpath-functions"
    xmlns:tst="http://www.ma-buwi-fh.de"
    xmlns="http://www.w3.org/1999/xhtml"&gt;
  </code></pre>