cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: Usage of SAXBuffer?
Date Fri, 05 Mar 2004 21:39:45 GMT
Stephan Coboos wrote:

> Christopher Oliver wrote:
>
>> You could use the JXTemplate generator to do this without Java
>> programming:
>>
>> <jx:macro name="iterate">
>>  <jx:parameter name="times"/>
>>  <jx:forEach start="1" end="${times}">
>>     <jx:evalBody/>
>>  </jx:forEach>
>> </jx:macro>
>>
>> -- 
>> Chris
>>
>
> Thank you, Chris. But I need to write my own transformer for several 
> reasons. 

Can you explain the other 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.

Try looking at org.apache.cocoon.woody.transformation.EffectPipe in the 
Woody block.

--
Chris

Mime
View raw message