cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Coboos <>
Subject Re: Usage of SAXBuffer?
Date Fri, 05 Mar 2004 20:09:37 GMT
Christopher Oliver wrote:

>You could use the JXTemplate generator to do this without Java
><jx:macro name="iterate">
>  <jx:parameter name="times"/>
>  <jx:forEach start="1" end="${times}">
>     <jx:evalBody/>
>  </jx:forEach>

Thank you, Chris. But I need to write my own transformer for several 
reasons. So I can't use JXTransformer. My problem is not how to create 
an iteration but how to repeat a bunch of sax events several times 
within a transformer.

One possible solution would be to put the events on a stack. The better 
solution would SAXBufffer be, I hope so.

Therefore I need a short example how to use this class.


View raw message