cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <>
Subject Re: FormsGenerator vs FormsTransformer
Date Thu, 25 Nov 2004 18:58:55 GMT
Sylvain Wallez wrote:
> [catching up the list - guys, you were so verbose lately !]
> Reinhard Poetz wrote:
>> Just wondering why in the examples always the FormsTransformer is used 
>> although the use of the FormsGenerator is possible. Does this have a 
>> special reason?
> The FormsGenerator produces an XML representation of the form, following 
> the hierarchy and ordering defined by the form definition. To produce an 
> HTML page from that document, you either must have a generic stylesheet 
> that will setup a standard (but not nice) layout, or have a specific 
> stylesheet for each form.
> The FormTransformer takes as input widget references spread in a page 
> structure, meaning you have a specific template for each form. That 
> template can be produced by any kind of generator (file, xsp, jxtg, 
> velocity, etc.)
> So to have nicely laid out forms, you can use either approach depending 
> if you feel more comfortable with writing an XSL or a template for each 
> form.
> Seems like most people prefer to write a template :-)
> Ah, and the FormGenerator can also be used for some webservice-style 
> clients where no layout is needed.

Thank you Sylvain!


View raw message