Hello,

I want to write my own transformer which iterates over a element and repeates the content several times. For example:

<iterate times="3">
   <p>I'm the content</p>
</titerate>

The content "<p>I'm the content</p>" should be repeated 3 times, like this:

   <p>I'm the content</p>
   <p>I'm the content</p>
   <p>I'm the content</p>

Can I use the class org.apache.cocoon.xml.SAXBuffer to do that?

Can you give me a short example, how to use this class within a transformer?

Thank you.

Regards
Stephan

Reply via email to