cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron van de Ven" <>
Subject csp transformer
Date Mon, 25 Jul 2005 08:48:29 GMT
I've been using for quite some time now. When studying the transformers I
see the same pattern 
coming back; the transformers look for a certain element name, and on the
position of the element 
name insert xml. 
Isn't it therefore a good idea, to make a CocoonServerPagesTransformer.
This CSPTransformer looks up a cld.xml file. The cld file contains a mapping

of element name to XmlPipe implementation. The CSPTransformer filters for 
the cld.xml element names and when finding one
instantiates the XmlPipe implementation, and invokes it's xmlGenerate()
The advantage of this approach is that it's much easier for developers not
familier with cocoon, to extend cocoon transformes. It also prevents from
having the performance overhead
of having to use an extra transformer when you just need a small extension
to an already 
existing transformer. 
What do you think?
Regards,    Ron van de Ven

View raw message