ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: replacing text in a file during a copy
Date Thu, 21 Nov 2002 20:33:02 GMT
Since you're online, let me highjack this thread with my own question. I
have a problem with an XSLT transform propagating an xmlns:xsi namespace
declaration from the source document to the transformed document (several in
fact, because I'm using the redirect extension). These generated documents
are Ant build files, with entity includes.

Would <xmltask> be able to leave the build.xml intact expect for removing
all xmlns:xsi="..." attributes on all elements it finds it?

Thanks, --DD

-----Original Message-----
From: Brian Agnew [] 
Sent: Thursday, November 21, 2002 2:25 PM
To: Ant Users List
Subject: Re: replacing text in a file during a copy

You can also use <xmltask> and its <insert> command to do the same.

<xmltask source="input.xml" dest="output.xml>
   <insert path="/web/" file="webinc.xml" position="under"/>

or similar, depending on your requirements. More at


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message