ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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 [mailto:brianagnew@yahoo.com] 
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.

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

or similar, depending on your requirements. More at
http://www.oopsconsultancy.com/software/xmltask.html

Brian

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message