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:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
I get the warning: "Undefined attribute name (xmlns)." What's the best way to solve this in Eclipse?
edit: The doctype for this particular file was wrong apparently, it was set to:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Which does not exist obviously. Eclipse is now complaining about taglib tags though, i.e.:
<%@taglib prefix="s" uri="/struts-tags" %>
generates the warning: "Tag (jsp:directive.taglib) should be an empty-element tag."