You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tamara Cameron <Ta...@nbci.com> on 2000/07/26 03:44:47 UTC

Serializer for HDML output

Hey All--

I am trying to generate HDML using cocoon and can only find one unanswered
question in the archives about creating a serializer to do this.

I am wondering if an HDML Formatter has already been created by someone.
Alternatively, I am hoping that there is  information, documentation or
pointers for creating new Formatters that someone can point me to.

Thanks,

Tamara
 


Re: Serializer for HDML output

Posted by I-Chung Young <ic...@puma.mt.att.com>.
Hi,

	Based on my limited understanding, Serializer is
developed in Xerces. The current SerializerFactory only
allows XML/HTML/XHTML/TEXT. If you change the xerces,
then you could check how HTMLSerializerin Xerces is and
check HTMLFormatter in Cocoon to duplicate one. Or you
could check FO2PDFFormatter in cocoon and write your
own serializer on Document object.

	The problem I see is HDML syntax is even looser
than HTML regarding end tag. It may not be worth developing
it for this to-be-retired language. For a dirty hack, you
could treat HDML as text output and use TextFormatter in
cocoon. The advantage is it works (somewhat) The disadvantage
is all HDML tags (angle brakets) has to be enclosed in
<xsl:text><![CDATA[<]]></xsl:text> and
<xsl:text><![CDATA[>]]></xsl:text>

Hope this helps.
------------
I-Chung Young

On Tue, 25 Jul 2000, Tamara Cameron wrote:

> Hey All--
> 
> I am trying to generate HDML using cocoon and can only find one unanswered
> question in the archives about creating a serializer to do this.
> 
> I am wondering if an HDML Formatter has already been created by someone.
> Alternatively, I am hoping that there is  information, documentation or
> pointers for creating new Formatters that someone can point me to.
> 
> Thanks,
> 
> Tamara
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
>