cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [Design] JXTG 2.0 (Just my opinion)
Date Sun, 05 Dec 2004 05:15:26 GMT
Roy G. Biv wrote:
> Bertrand Delacretaz wrote:
> 
>> That's what I mean - having a transformer that can use the same 
>> template syntax as used in the generator, so that the template 
>> language can be used for both the generation and transformation steps.
> 
> 
> Aren't you really talking about just a transformer then?  The current 
> role of generator would be handled by a FileGenerator loading the 
> template for processing by the transformer.  The processing model would 
> be kept with the SourceValidity object -- possiblity for reuse whenever 
> the previous parts of the pipeline are cacheable.
> 
> Then the generator simply becomes a virtual one:
> 
>  <map:generator name="template">
>    <map:absolutize param="templatename"/>
>    <map:generate type="file" src="{templatename}.xml"/>
>    <map:transform type="template"/>
>  </map:generator>
> 
> A two for one!  Only one codebase to maintain.  Nothing to keep in sync.

No, I disagree: there is a place for generation and there is a place for 
transformation. They are different things and both have a reason to exist.

-- 
Stefano.


Mime
View raw message