Set append="true" on the <copy> will do what you want. Your buffer will then consist of multiple DOM fragments.
Brian On Fri, June 22, 2007 14:14, Gandon, Sébastien wrote: > Hello, > > > > I am still struggling with xmltask basic feature, I must be doing > something wrong. > > > > Here is the > > <!-copy only the custom nodes> > > <xmltask sourcebuffer="custom.toc.buffer" > > > <print buffer="custom.toc.buffer"/> > > <copy path="book/*" buffer="custom.toc.buffer.1"/> > > <print buffer="custom.toc.buffer.1"/> > > </xmltask> > > > > And the result output, you can see that custom.toc.buffer as one level1 > and many level2 elements that I would like to keep into another buffer > (custom.toc.buffer.1), but as you can see the print only shows one level2 > element. Where are all the other nodes gone ? > > > > [xmltask] { buffer 'custom.toc.buffer' output > > [xmltask] <book categories="languagereferences,as2" directory="MHDK > Help" language="en" sort="mm_5" title="MHDK help" version="2.0"> > > [xmltask] <level1 href="" name="CanalDigital_2.13_rc5"/><level2 > href="D:\Program Files\NDS > Technologies\MHDK\STBS\Profiles\CanalDigital\Mediahighways\CanalDigital_2.13_rc5\Lib\mvm\doc\index.html" > name="Generated Documentation (Untitled)"/><level2 href="D:\Program > Files\NDS > Technologies\MHDK\STBS\Profiles\CanalDigital\Mediahighways\CanalDigital_2.13_rc5\Doc\index.html" > name="index.html"/><level2 href="D:\Program Files\NDS > Technologies\MHDK\STBS\Profiles\CanalDigital\Mediahighways\CanalDigital_2.13_rc5\Doc\MHDK > Reference Manual\html\index.html" name="Generated Documentation > (Untitled)"/></book> > > [xmltask] } buffer 'custom.toc.buffer' output > > [xmltask] { buffer 'custom.toc.buffer.1' output > > [xmltask] <level2 href="D:\Program Files\NDS > Technologies\MHDK\STBS\Profiles\CanalDigital\Mediahighways\CanalDigital_2.13_rc5\Doc\MHDK > Reference Manual\html\index.html" name="Generated Documentation > (Untitled)"/> > > [xmltask] } buffer 'custom.toc.buffer.1' output > > > > *********************************************************************************** > This e-mail is confidential, the property of NDS Ltd and intended for the > addressee only. Any dissemination, copying or distribution of this > message or any attachments by anyone other than the intended recipient is > strictly prohibited. If you have received this message in error, please > immediately notify the [EMAIL PROTECTED] and destroy the original > message. Messages sent to and from NDS may be monitored. NDS cannot > guarantee any message delivery method is secure or error-free. > Information could be intercepted, corrupted, lost, destroyed, arrive late > or incomplete, or contain viruses. We do not accept responsibility for > any errors or omissions in this message and/or attachment that arise as a > result of transmission. You should carry out your own virus checks before > opening any attachment. Any views or opinions presented are solely those > of the author and do not necessarily represent those of NDS. > > To protect the environment please do not print this e-mail unless > necessary. > *********************************************************************************** > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/_______________________________________________ > Xmltask-users mailing list > Xmltask-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xmltask-users > -- Brian Agnew http://www.oopsconsultancy.com OOPS Consultancy Ltd Tel: +44 (0)7720 397526 Fax: +44 (0)20 8682 0012 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users