title: How to let JSF render conform XHTML 1.0 strict?
body: <p>I need to develop a web application which has to be compliant with "Stanca act" (Legge Stanca). I've used jsf2.0 (Mojarra ) + primefaces 3.2 so far but I have validation problems when I use </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  </code></pre>
  
  <p>In particular for an empty form page the following generated html code:</p>
  
  <pre><code>&lt;form id="j_idt16" name="j_idt16" method="post" action="/econsob/faces/prova_stanca.xhtml" enctype="application/x-www-form-urlencoded"&gt;
      &lt;input type="hidden" name="j_idt16" value="j_idt16" /&gt;
      &lt;input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-8952155502993391596:-7459269746161777412" autocomplete="off" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>does not pass validation because:</p>
  
  <ul>
  <li>attribute name in form tag is not supported by the doctype required
  by Stanca act</li>
  <li>document type does not allow element "input" here (just below the
  form)</li>
  <li>attribute autocomplete is not supported by the doctype</li>
  </ul>
  
  <p>Is there a way to solve this issue? Is it possible that a jsf generated page does not validate using Strict?</p>