Hi Brian, The thing is that the insert subtask is runs inside a loop, i.e., I create n dependencies. So I am guessing I need to keep a counter n and do something like:
<attr path=" ivy-module/dependencies/dependency [@id=n]/" attr="conf" value="compile->default"/> I will have to try Thanks, Horacio Hoyos Rodríguez EngD Student University of York -----Original Message----- From: Brian Agnew [mailto:br...@oopsconsultancy.com] Sent: 18 September 2012 14:12 To: Horacio Hoyos Rodriguez Cc: xmltask-users@lists.sourceforge.net Subject: Re: [Xmltask-users] Xmltask replaces > in strings Have you tried modifying the attr immediately afterwards via (say) the <attr> subtask ? On Tue, September 18, 2012 13:13, Horacio Hoyos Rodriguez wrote: > Hello, > > > > I have the following Xmltask: > > > > <xmltask > > source= > "${ivy.repo}/${module.module}/${module.revision}/ivy-${module.revision}.xm l" > > dest= > "${ivy.repo}/${module.module}/${module.revision}/ivy-${module.revision}.xm l" >> > > <insert path="/ivy-module/dependencies/dependency" > > position="under"> > > <![CDATA[ > > <dependency org="" > name="]]>${dependency.module}" > <![CDATA[rev="]]>${dependency.revision}<![CDATA[" > conf="compile->default"/> > > ]]> > > </insert> > > </xmltask> > > > > In the CDATA inserted I need the conf=”compile->default” as it is (Ivy > repository file), however after running the task, the insert is done > correctly, but the > character is replaced (the result): > > > > <dependency conf="compile->default" name="org.eclipse.emf.ecore" org="" > rev="2.8.0"/> > > > > I guess by default you scape < and > to enforce well formatted xml’s, > but I think they should not be replaced if inside a string. > > > > Is there any workaround or fix? Do I have to provide my own outputter > ??!!?? > > > > Regards, > > > > Horacio Hoyos Rodríguez > > EngD Student > > University of York > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_____________ > __________________________________ > 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users