title: Editing xhtml jsp files in Eclipse
body: <p>I've got some jsp files that are supposed to output xhtml. They seem to have the correct doctype etc but Eclipse is not parsing the xhtml attributes. For instance for the root element:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  </code></pre>
  
  <p>I get the warning: "Undefined attribute name (xmlns)." What's the best way to solve this in Eclipse?</p>
  
  <p>edit: The doctype for this particular file was wrong apparently, it was set to:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC 
     "-//W3C//DTD XHTML 1.1 Transitional//EN" 
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  </code></pre>
  
  <p>Which does not exist obviously. Eclipse is now complaining about taglib tags though, i.e.:</p>
  
  <pre><code>&lt;%@taglib prefix="s" uri="/struts-tags" %&gt;
  </code></pre>
  
  <p>generates the warning: "Tag (jsp:directive.taglib) should be an empty-element tag."</p>