You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stephan Coboos <cr...@gmx.net> on 2004/03/05 20:14:45 UTC

Usage of SAXBuffer?

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