Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 18408 invoked from network); 13 Jun 2006 14:40:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2006 14:40:13 -0000 Received: (qmail 45240 invoked by uid 500); 13 Jun 2006 14:40:12 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 45185 invoked by uid 500); 13 Jun 2006 14:40:12 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 45173 invoked by uid 99); 13 Jun 2006 14:40:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 07:40:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ddevienne@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 07:40:11 -0700 Received: by ug-out-1314.google.com with SMTP id m3so2277378ugc for ; Tue, 13 Jun 2006 07:39:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kUnAomMdzYi47iO6Bw1kL4PXh+kJE3b79+udgJk0Nettm6agjE0mkdowJOQrP0dhB2HGfNbqky4DbbM0Zk0DnpHztUNIj56Yvpe51qV/rc/WkR/8UFhnPUKiDRgJBnMHq1xZ0e7U6J5QMy7qY4KKndWBqpZ5NzBzW2B23WsQu/g= Received: by 10.78.32.16 with SMTP id f16mr236826huf; Tue, 13 Jun 2006 07:39:50 -0700 (PDT) Received: by 10.78.48.9 with HTTP; Tue, 13 Jun 2006 07:39:50 -0700 (PDT) Message-ID: <255d8d690606130739o3f8f2610r14a4b5cb3409b395@mail.gmail.com> Date: Tue, 13 Jun 2006 09:39:50 -0500 From: "Dominique Devienne" To: "Ant Developers List" Subject: Re: QName in DynamicAttributeNS In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <448E926D.1060203@apache.org> <448E99CE.5020903@apache.org> <448EC7DE.2030004@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 6/13/06, Peter Reilly wrote: > The prefix for elements (as against attributes) are retained. > ProjectHelper2 called UE.setQName(qName) with the > name it receives from the sax. > > Something needs to be done for attributes.. Namespaces are used to avoid name collision, and in Ant to locate the right implementation class. That's necessary for top-level tasks, and for nested elements in tasks/types having add(Xyx) methods. Attributes in Ant OTOH, are always "resolved" relative to their element. Their can't be any ambiguity ATM for attribute. Ant doesn't support namespace'd attribute at all, AFAIK. Also, remember that attributes don't inherit the namespace of their element, and are always in the "" namespace, unless explicitly qualified with a prefix. As I write above, Ant doesn't support them for introspected class. Using namespace prefixes is dangerous, because they can change from element to element, depending on while namespaces are in scope, and we can have different prefixes for the same NS URI, or the same prefix for different NS URIs depending on the element (although this is evil, XML supports it). XmlFragment is already not "exact" XML, as all text nodes, even with nested element in between them, are merged together. I'm not sure it's worth it to be exact XML... --DD --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org