cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remon" <>
Subject RE: WURFL + COCOON (WALL Serializer)
Date Sat, 13 Dec 2008 00:07:24 GMT
Hi Luca,

I just want to integrate WALL in cocoon, I need to find a way to pass a
universal markup (understood by my program) which is in XML format from
cocoon XML transformer or generator to the custom serializer and let this
serializer decides whether to serve the client with WML or HTML or CHTML ...

This means that the output markup and content type will be decided by the

The idea is to separate the markup generated for mobile devices from the
markup generated by sources.

e.g. let's say the PIPE line goes as follows

XML received from transformer or generator is

<wallxmlpidtd encoding="UTF-8"/>
<walltitle enforce_title="true">
<walltext value="Test Page Title"/>
<wallimg cach="true" src=""
alt="Test Image"/>

Serializer serializes output to HTML if device preferred markup is HTML or
WML if device preferred markup is WML.

Which means the serializer will change the markup language to meet WML/HTML
markup specs, as well as changing the content type of the document from
text/xml to text/html or text/wml


-----Original Message-----
From: news [] On Behalf Of Luca Morandini
Sent: Friday, December 12, 2008 7:38 PM
Subject: Re: WURFL + COCOON (WALL Serializer)

Remon wrote:
> What I need to do is developing a new cocoon Serializer called WALL to 
> work with my package. My Idea is to fetch XML from a source generator, 
> transform it using XSLT to my XML defined tags, pass it to the Developed 
> serializer for converting the XML and setting the document content type 
> and generating the text output.

Not sure I understood your proposal: custom serializers are there for 
converting to non-XML format, but, as far as I understood, your package 
produces some form of XML (well, it  might malformed XML, right ?), 
which can be serialized using the XML serializer or the HTML serializer.

What you propose sounds more the job of a transformer (XML in - XML out, 
or, more properly: SAX in - SAX out).


    Luca Morandini

View raw message