From user-return-62297-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Sep 19 22:31:07 2007 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40957 invoked from network); 19 Sep 2007 22:31:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2007 22:31:06 -0000 Received: (qmail 85877 invoked by uid 500); 19 Sep 2007 22:30:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 85850 invoked by uid 500); 19 Sep 2007 22:30:53 -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 85839 invoked by uid 99); 19 Sep 2007 22:30:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 15:30:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ddevienne@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 22:30:53 +0000 Received: by ug-out-1314.google.com with SMTP id c2so290214ugf for ; Wed, 19 Sep 2007 15:30:32 -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:content-transfer-encoding:content-disposition:references; bh=l/Ajp0HydPG5OAyF37oCha4luUj9O01Z941NCDDMJGw=; b=oUMpLoKaBkxfA84yV2x2APaXvLrZ0jpwfgA96f4kPGk1q0DxWaJSRVJmSJt5BJQVUSorqi/f60ME9sBlZ/BQvin4Ss3gddUzeuODWCa/nYCfRGmfJOeZj+HYuAQM7FENMAhQHfdDBzF9/7iX5zfzlv9Ph1Wv1Ms5K/Cjmtwgr7s= 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:content-transfer-encoding:content-disposition:references; b=rVQjqsomte4yVh1VqMu94egStzedpYDABMagqGecfBSM5x4kB7idR8P9FcYaXgPcYnOHQl7v5VwLe1//7PdSzB30xXGPvEttOwk9n9uQbePGHfyvGPWALnyIJEeLHuxgYQ/lFDrBCnuC5vI2+CBXptN4kxIdWqxcP3T1/LiWHFw= Received: by 10.66.220.12 with SMTP id s12mr2400442ugg.1190241031895; Wed, 19 Sep 2007 15:30:31 -0700 (PDT) Received: by 10.66.248.7 with HTTP; Wed, 19 Sep 2007 15:30:31 -0700 (PDT) Message-ID: <255d8d690709191530k48c432d5h40c87874fd62b3d@mail.gmail.com> Date: Wed, 19 Sep 2007 17:30:31 -0500 From: "Dominique Devienne" To: "Ant Users List" Subject: Re: Editing an XML file using ant In-Reply-To: <2ae0eaa40709191515v5a743f6au7243700677c6fc77@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2ae0eaa40709191515v5a743f6au7243700677c6fc77@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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. 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