Re: 2.1.12 and html5

Thorsten Scherler <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <[email protected]>
On 06/05/2013 07:15 AM, Peter Sparkes wrote:
> 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

http://mail-archives.apache.org/mod_mbox/cocoon-cvs/201211.mbox/%[email protected]%3E

...

+        } else if ("xhtml5".equalsIgnoreCase(doctype)) {
+            this.doctype_default = XHTML5_DOCTYPE;
...


<serializer class="org.apache.cocoon.components.serializers..." ... >
   <doctype-default>xhtml5</doctype-default>
 </serializer>


HTH

salu2


>
> 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/
>


-- 
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.