Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 53240 invoked from network); 19 Sep 2007 23:04:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2007 23:04:35 -0000 Received: (qmail 25015 invoked by uid 500); 19 Sep 2007 23:04:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24974 invoked by uid 500); 19 Sep 2007 23:04:23 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 24963 invoked by uid 99); 19 Sep 2007 23:04:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 16:04:23 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brokenconnection@gmail.com designates 209.85.198.189 as permitted sender) Received: from [209.85.198.189] (HELO rv-out-0910.google.com) (209.85.198.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 23:06:22 +0000 Received: by rv-out-0910.google.com with SMTP id k15so302032rvb for ; Wed, 19 Sep 2007 16:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=roavYLa16D4OedRD68TvZ3QpnzcfKnUysh/IuUL1MhM=; b=GxvikxbbcJDwTdsuemp2Wm+hww9SOqpKWQh1vCv1prIJVsx0J7hKoXV8hViSMURUPGwR5pYodfNG9tfer9ybzKTRfloOBgSHneP7YZxeLj2KZrtEnRup4+8SqVqMDT9mHKfRgvY82cVVL9exEx+t+MV+f9+gVICK2T0l0wtOEfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Xie9gJZxzdQc4Zpfgt0g7F3CNyTivfo5VCRcd4sc7vaZ6LkoCrohgaMY8ALNWiEPTKjWK0yafAMm3yvuhoKt75RdPJzRThef/5hXBZ0eihBBxzaj0SopLGedQhGazVWyfmZJ867xLYUTTjDacPZRvPrACPg723ONM02bpQzWsQw= Received: by 10.141.50.17 with SMTP id c17mr310151rvk.1190243042370; Wed, 19 Sep 2007 16:04:02 -0700 (PDT) Received: by 10.141.18.15 with HTTP; Wed, 19 Sep 2007 16:04:02 -0700 (PDT) Message-ID: <2ae0eaa40709191604t7f9b52b1ga9ffe22248646ef2@mail.gmail.com> Date: Wed, 19 Sep 2007 19:04:02 -0400 From: "broken connection" To: "Ant Users List" Subject: Re: Editing an XML file using ant In-Reply-To: <255d8d690709191530k48c432d5h40c87874fd62b3d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11713_11856875.1190243042379" References: <2ae0eaa40709191515v5a743f6au7243700677c6fc77@mail.gmail.com> <255d8d690709191530k48c432d5h40c87874fd62b3d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11713_11856875.1190243042379 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Dominique, I understand and XMLTask uses XPath to map to that element and it's not able to map to that web-app because of namespace. So, I am trying to use this to make it map to the namespace web-app but it's not working: So, how can i make XPath find the namespace enabled web-app that comes with Tomcat ??? Thanks On 9/19/07, Dominique Devienne wrote: > > On 9/19/07, broken connection wrote: > > Can someone please suggest anyway to resolve this?? This is strange. > > > > > Are two different XML elements. The first belongs to an XML namespace, > the second doesn't. XSL is namespace-aware, and thus won't match > when you tell it > to match , and vice versa. > > You could match both, but the problem is that the elements you want to > insert need to belong to the "proper" namespace too. xmlns="http://java.sun.com/xml/ns/javaee"> not only says that the > 'web-app' element belongs to the "http://java.sun.com/xml/ns/javaee" > namespace, it also sets the "default" namespace. This means that all > elements enclosed in 'web-app' also belong to this namespace, while > the elements you want to insert, coming from another XML file, also > belong to some namespace. XSL doesn't do a "textual" insert, but a > "namespace-aware" insert in this case. > > Sorry if the above is confusing. XSL and XML namespaces both have a > learning curve to them. --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_11713_11856875.1190243042379--