Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.0.1-incubating-core-SNAPSHOT
-
None
-
None
-
None
-
all
Description
Trinidad doesn't support generating STRICT XHTML. Please, add this support.
JSP page starting with the following definition
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<jsp:directive.page contentType="application/xhtml+xml;charset=utf-8" />
<jsp:output
omit-xml-declaration="false"
doctype-root-element="xhtml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
<f:view>
<tr:document title=
causes Trinidad to produce bad HTML:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!- Start: org.apache.myfaces.trinidad.Document["_idJsp0"] --><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xml:lang="en">
<head>
<title>Home Page</title>
<meta name="generator" content="Oracle ADF Faces"></meta>
NOTE: there are 2 DOCTYPE entries