cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist <mlundqui...@comcast.net>
Subject Re: Well Formed HTML as template
Date Mon, 18 Jul 2005 20:39:49 GMT
Gustavo Nalle Fernandes wrote:
> Hi cocooners,
> 
> Does cocoon offers thru one of its generators the possiblity to use a well
> formed HTML instrumented with valid htmls tags in order to generate a
> dynamic page, similar to tapestry template mechanism?
> (http://jakarta.apache.org/tapestry/UsersGuide/template.html#template.compon
> ents) 

Hi Gustavo,

That's easy.  The generator you use is called an "aggregator" (look in 
the docs where <map:aggregate> is described).  You use this to create an 
XML document containing two parts: (1) the template, and (2) the data 
stream.  Then you pipe that through an XSLT stylesheet that replaces 
elements in (1) with elements from (2).  So basically, the workhorse of 
the templating is still an XSLT stylesheet -- not a special generator -- 
but the template itself is XHTML.

HTH,
—ml—


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message