Derry O'Sullivan wrote:
Hi all,

I'm running Cocoon 2.0.3 on Tomcat 4.1 to develop an extension to an existing cocoon based application. The task is to adapt existing xml output created by a java generator. I've looked into aggregation and transformations to try and get this to work. What i want to do is essence is change the output from:

<a>
     <b>
           <c>Old Content</c>
     </b>
</a>

to be:

<a>
      <b>
             <c>Old Content</c>
       </b>
             <d>Inserted New content</d>
</a>

by editing the source given by the generator (as in the first code snippet). Is it possible to do this?

Yes. How you do it depends on the source of the new content. The simplest way is to add an XSLT transformation after the generator to modify its output.

Sylvain

--
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to