I would suggest modifying your templateejb-jar-bnd.xmi to contain the
equivalent namespaces. XMLTask doesn't translate between namespaces
(perhaps it should, but that's another conversation!).

Brian

On Thu, December 15, 2011 09:09, ankit chowdhury wrote:
> ankit chowdhury <ankit.chowdhury@...> writes:
>
>>
>> I am facing the same issue where i am getting <xmltask> subtasks failed
>> to
>> find matches ..error .
>> My xml task is below .
>>
>> <xmltask source="ejb-jar.xml" dest="ex1-ejb-jar.xml"
>> failWithoutMatch="true">
>>       <insert
>> path="//*[local-name()='ejb-jar']/enterprise-beans/message-
> driven
>> [last()]" position ="after" file="templateGenEjb_jar.xml"/>
>>      </xmltask>
>> Ejb-jar.xml has this namespace in the begining .
>> <ejb-jar id="EjbModule_1" version="2.1"
>> xmlns="http://java.sun.com/xml/ns/j2ee";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/
>> <http://java.sun.com/xml/ns/j2ee>
>>
>> if i make it as <ejb-jar id="EjbModule_1" version="2.1" > this works.
>> The suggestion beolw didnt work .
>>
>> -----------------------------------------------------------------------------
> -
>> 10 Tips for Better Server Consolidation
>> Server virtualization is being driven by many needs.
>> But none more important than the need to reduce IT complexity
>> while improving strategic productivity.  Learn More!
>> http://www.accelacomm.com/jaw/sdnl/114/51507609/
>>
>
> Thanx
>
>
> Hi ,
> I tried path="//*[name()='message-driven'][last()]" .. as path and this
> worked .
> I wanted to insert after last  'message-driven' .
>
> But wen i am trin to update ejb-jar-bnd.xmi and am getting
>  Failed to add text to insert/paste
>
>  <xmltask source="ejb-jar-bnd.xmi" dest="dest_ejb-jar-bnd.xmi"
> failWithoutMatch="true">
>       <insert path="//*[name()='ejbBindings'][last()]" position ="after"
> file="templateejb-jar-bnd.xmi"/>
>      </xmltask>
>
> Is there any other way to update xmi as this doesnt have anme spacee  or
> <?xml
> version="1.0" encoding="UTF-8"?> tag on top .
>
>
>
>
> ------------------------------------------------------------------------------
> 10 Tips for Better Server Consolidation
> Server virtualization is being driven by many needs.
> But none more important than the need to reduce IT complexity
> while improving strategic productivity.  Learn More!
> http://www.accelacomm.com/jaw/sdnl/114/51507609/
> _______________________________________________
> 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


------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to