cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: HTML5 serializer
Date Fri, 06 Jan 2012 17:12:42 GMT
Le 06/01/12 15:48, Robby Pelssers a écrit :
>
> Hi all,
>
> I've been looking at how to add a HTML5 serializer to the project.
>
> So far my investigations have led to add following code to 
> org.apache.cocoon.sax.component.XMLSerializer
>
>     public static XMLSerializer createHTML5Serializer() {
>
>         XMLSerializer serializer = new XMLSerializer();
>
>         serializer.setContentType(TEXT_HTML_UTF_8);
>
>         serializer.setDoctypePublic("XSLT-compat");
>

Looks like "XSLT-compat" has been changed to "about:legacy-compat" in 
the latest HTML 5 specification.

See http://dev.w3.org/html5/spec/syntax.html#doctype-legacy-string

Sylvain

-- 
Sylvain Wallez - http://bluxte.net


Mime
View raw message