cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Damioli <cdami...@apache.org>
Subject Re: 2.1.12 and html5
Date Wed, 05 Jun 2013 09:18:46 GMT
Hi,

The XHTMLSerializer Francesco was referring to is not the 
org.apache.cocoon.serialization.XMLSerializer of your sample, but the 
org.apache.cocoon.components.serializers.XHTMLSerializer from the 
serializers block, which is another implementation of XHTML serialization.

Regards,
Cédric

Le 05/06/2013 07:15, Peter Sparkes a écrit :
> Hi Francesco ,
>
> I can't get the XHTML serializer to produce html5, the sitemap.xmap has:
>
>     <map:serializer logger="sitemap.serializer.xhtml"
>     mime-type="text/html" name="xhtml"
>     pool-max="${xhtml-serializer.pool-max}"
>     src="org.apache.cocoon.serialization.XMLSerializer">
>                <!--+
>               | You can choose from Strict, Transitional, or Frameset
>     XHTML.
>               | For Strict XHTML set doctype to:
>               |   <doctype-public>-//W3C//DTD XHTML 1.0
>     Strict//EN</doctype-public>
>               |
>     <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
>               | For Transitional XHTML set doctype to:
>               |   <doctype-public>-//W3C//DTD XHTML 1.0
>     Transitional//EN</doctype-public>
>               |
>     <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>
>               | For Frameset XHTML set doctype to:
>               |   <doctype-public>-//W3C//DTD XHTML 1.0
>     Frameset//EN</doctype-public>
>               |
>     <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</doctype-system>
>               |
>               | Default XHTML doctype in Cocoon is XHTML Strict. If
>     you want to use more than one
>               | XHTML DTD simultaneously, you can define several XHTML
>     serializers.
>               +-->
>                     <doctype-public>-//W3C//DTD XHTML 1.0
>     Strict//EN</doctype-public>
>     <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
>                     <encoding>UTF-8</encoding>
>          </map:serializer>
>
> I have tried experimenting with various values in <doctype-public> and 
> <doctype-system> but can't get
>
>     <!DOCTYPE html>
>     <html>
>     <head>
>
> Regards
>
> Peter
>
> On 04/06/2013 08:18, Francesco Chicchiriccò wrote:
>> On 03/06/2013 19:19, Peter Sparkes wrote:
>>> Hi
>>>
>>> Does 2.1.12 have a html5 serializer
>>
>> Yes: XHTML serializer can handle HTML5 doctype - 
>> https://issues.apache.org/jira/browse/COCOON-2310
>>
>> Regards.
>> -- 
>> Francesco Chicchiriccò
>>
>> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
>> http://people.apache.org/~ilgrosso/
>
>
> -- 
> Cédric Damioli
> Ametys CMS
> http://www.ametys.org
> http://www.anyware-services.com

Mime
View raw message