title: Can not validate an HTML generated from jsp
body: <p>What's up? I've been using this site for a long time but now it's time for me to finally ask something. Here it goes:</p>
  
  <p>I'm trying to validate an HTML genereted with a jsp and I'm getting this error: </p>
  
  <pre><code>there is no attribute "XMLNS"
  &lt;HTML xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;HEAD&gt;
  </code></pre>
  
  <p>I know I can fix it with some stuff like that:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  </code></pre>
  
  <p>But although I'm using this in my code the generated HTML becomes in this:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
  &lt;HTML xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;!-- Cabecera HTML --&gt;&lt;HEAD&gt;          
  &lt;META http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT"&gt;          
  &lt;META http-equiv="Last-Modified" content="Sun, 25 Jul 2004 16:12:09 GMT"&gt;
  ...
  ...
  </code></pre>
  
  <p>And this is part of my jsp code: </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"&gt;
  </code></pre>
  
  <p>Do you guys have any ideas?</p>
  
  <p>Thank you very much!</p>