4
Usually, when I do a JSF page with XHTML, I use the DTD for XHTML 1.0 Transitional.
However, if I use namespace and put some HTML5 tags (passtrough Elements/Attributes), which DTD should I use?
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough">
<h:body>
<input jsf:id="algumaID"/>
<h:inputText pt:placeholder="algum texto"/>
</h:body>
</html>
XHTML (page.xhtml)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
or HTML5 (page.html)?
<!DOCTYPE html>