Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 98109 invoked from network); 23 Jan 2001 15:20:14 -0000 Received: from sundn.pb.teuto.net (HELO viruswall.ynes.de) (212.8.194.130) by h31.sny.collab.net with SMTP; 23 Jan 2001 15:20:14 -0000 Received: from 10.10.1.10 by viruswall.ynes.de (InterScan E-Mail VirusWall NT); Tue, 23 Jan 2001 16:19:49 +0100 (Westeuropaeische Normalzeit) Received: from hw0230 (fw-dmz.ynes.de [10.10.1.1]) by mail.ynes.de (8.9.3/8.9.3/NoSpam) with SMTP id QAA18719 for ; Tue, 23 Jan 2001 16:19:49 +0100 From: "Carsten Ziegeler" To: Subject: [C2]: Patch for DOMBuilder Date: Tue, 23 Jan 2001 16:22:14 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0013_01C08558.A52EFC30" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ------=_NextPart_000_0013_01C08558.A52EFC30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, attached is a simple patch for the DOMBuilder which corrects=20 the namespace attribute detection. Carsten ------=_NextPart_000_0013_01C08558.A52EFC30 Content-Type: text/plain; name="diff.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="diff.txt" Index: DOMBuilder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: = /home/cvspublic/xml-cocoon/src/org/apache/cocoon/xml/dom/Attic/DOMBuilder= .java,v retrieving revision 1.1.2.8 diff -u -r1.1.2.8 DOMBuilder.java --- DOMBuilder.java 2001/01/22 21:56:56 1.1.2.8 +++ DOMBuilder.java 2001/01/23 15:16:55 @@ -40,7 +40,7 @@ * * @author Pierpaolo = Fumagalli * (Apache Software Foundation, Exoffice Technologies) - * @version CVS $Revision: 1.1.2.8 $ $Date: 2001/01/22 21:56:56 $ + * @version CVS $Revision: 1.27 $ $Date: 2001/01/23 12:44:57 $ */ public class DOMBuilder implements XMLConsumer, Loggable { protected Logger log; @@ -269,7 +269,7 @@ String aloc=3Da.getLocalName(x); String araw=3Da.getQName(x); String aval=3Da.getValue(x); - if (araw.startsWith("xmlns:")=3D=3Dfalse) { + if (araw.startsWith("xmlns:")=3D=3Dfalse && = araw.equals("xmlns")=3D=3Dfalse) { NamespacesTable.Name = k=3Dthis.namespaces.resolve(auri,araw,null,aloc); // Set the attribute into the element auri=3Dk.getPrefix().length()=3D=3D0 ? null : = k.getUri(); ------=_NextPart_000_0013_01C08558.A52EFC30--