Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 33549 invoked by uid 500); 23 Oct 2001 16:49:12 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 33533 invoked from network); 23 Oct 2001 16:49:12 -0000 Date: 23 Oct 2001 16:49:14 -0000 Message-ID: <20011023164914.7296.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 4369] New: - xmlns: attributes disallowed making Ant uncompliant with XML X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4369 xmlns: attributes disallowed making Ant uncompliant with XML Summary: xmlns: attributes disallowed making Ant uncompliant with XML Product: Ant Version: 1.4.1 Platform: All OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Core AssignedTo: ant-dev@jakarta.apache.org ReportedBy: malcolm.sparks@iona.com Ant still retains the following code in org/apache/tools/ant/ProjectHelper.java around line 300. This means that generating build.xml documents with namespaces, often resulting in xmlns: namespace attributes, cause Ant to fail. The XML specification says that any attributes in the xmlns namespace should always be allowed. for (int i = 0; i < attrs.getLength(); i++) { String key = attrs.getName(i); String value = attrs.getValue(i); if (key.equals("default")) { def = value; } else if (key.equals("name")) { name = value; } else if (key.equals("id")) { id = value; } else if (key.equals("basedir")) { baseDir = value; } else { throw new SAXParseException("Unexpected attribute \"" + attrs.getName(i) + "\"", locator); } } Could the following case be added? :- } else if (!key.startsWith("xmlns:")) {