Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 27618 invoked from network); 12 Dec 2003 10:37:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Dec 2003 10:37:48 -0000 Received: (qmail 97549 invoked by uid 500); 12 Dec 2003 10:37:19 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 97506 invoked by uid 500); 12 Dec 2003 10:37:19 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 97492 invoked from network); 12 Dec 2003 10:37:19 -0000 Received: from unknown (HELO junior.lgc.com) (134.132.72.99) by daedalus.apache.org with SMTP; 12 Dec 2003 10:37:19 -0000 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id hBCAaFC11638; Fri, 12 Dec 2003 04:36:15 -0600 (CST) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Fri, 12 Dec 2003 04:37:19 -0600 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2657.72) id ; Fri, 12 Dec 2003 04:37:18 -0600 Message-ID: From: Dominique Devienne To: "'Christopher Lenz '" , "'Ant Developers List '" Subject: RE: DynamicConfigurator namespace problem Date: Fri, 12 Dec 2003 04:37:17 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) List-Subscribe: Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DOM does not give you access to the NS prefix, at least when you create an element from the document. Why would you need the prefix? Granted, even XSL uses the prefix in attribute values (xs:string), but it's bad XML according to EffectiveXML and others... The namespace prefix is the business of the XML file writer, not the XML application. --DD -----Original Message----- From: Christopher Lenz To: Ant Developers List Sent: 12/12/2003 4:12 AM Subject: Re: DynamicConfigurator namespace problem Am 12.12.2003 um 10:23 schrieb Stefan Bodewig: > On Fri, 12 Dec 2003, Peter Reilly wrote: > >> Yes, either add DynamicConfiguratorNS or revert the change I made >> yesterday to DynamicConfigurator. > > I'm more inclined to add DynamicConfiguratorNS. Same here. Proposed interface: public class DynamicConfiguratorNS { public Object createDynamicElement( String namespaceURI, String prefix, String localName); public void setDynamicAttribute( String namespaceURI, String prefix, String localName, String value); } Where namespaceURI, prefix and localName have the same semantics as in DOM Level 2: http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/Node.html I don't think this interface should extend DynamicConfigurator. The only effect would be that implementors also would need to implement the old two pair of methods. Cheers, Chris -- Christopher Lenz /=/ cmlenz at gmx.de --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org