I think this is a known issue and requires looking at. If I get the chance I will dig out some details over the weekend and try and understand the history of this.
In the meantime, can you use paste to paste the nodes somewhere temporarily (in the reverse order), then cut again and paste into the final destination. I'm guessing they should reverse again and thus end up in the right order ?! Brian On Fri, June 22, 2007 17:34, Gandon, Sébastien wrote: > Hello again ;) > > First of all thank you Brian and the oops team to be so reactive in > answering peoples questions, xmltask is very promising tool but it takes > some experience to make full use of it. > > Now my question. > > I have a buffer of node filled with a <copy> task without forgetting the > "append=true" attribute. > When I insert it into another xml file my nodes are place in the reverse > order of how the where order before the copy. > This is really annoying to me cause the final parsing of the resulting xml > is done by Adobe Flash Pro and expects a specific ordering of the nodes. > > Is there a way to get around it easily? I'll try the insert into a > temporary buffer to see if this works but if you have any other idea, this > would be nice. > > Thanks. > > SeB. > > > > -----Message d'origine----- > De : Brian Agnew [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 22 juin 2007 17:52 > À : Gandon, Sébastien > Cc : xmltask-users@lists.sourceforge.net > Objet : Re: [Xmltask-users] Can get <copy> to copy multiple nodes into > buffer > > 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 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