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