rossb 00/10/28 03:14:29
Modified: src/org/apache/cocoon/xml/dom Tag: xml-cocoon2
DOMBuilder.java
Log:
Fixed a namespace/attribute bug (patch sent by Carsten Ziegeler).
Revision Changes Path
No revision
No revision
1.1.2.3 +2 -2
xml-cocoon/src/org/apache/cocoon/xml/dom/Attic/DOMBuilder.java
Index: DOMBuilder.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/xml/dom/Attic/DOMBuilder.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -r1.1.2.2 -r1.1.2.3
--- DOMBuilder.java 2000/10/14 20:51:08 1.1.2.2
+++ DOMBuilder.java 2000/10/28 10:14:24 1.1.2.3
@@ -37,7 +37,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Pierpaolo Fumagalli</a>
* (Apache Software Foundation, Exoffice Technologies)
- * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/10/14 20:51:08 $
+ * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/10/28 10:14:24 $
*/
public class DOMBuilder implements XMLConsumer {
/** The document was not started */
@@ -261,7 +261,7 @@
String aval=a.getValue(x);
NamespacesTable.Name
k=this.namespaces.resolve(auri,araw,null,aloc);
// Set the attribute into the element
- auri=k.getPrefix().length()==0?"":k.getUri();
+ auri=k.getPrefix().length()==0 ? null : k.getUri();
e.setAttributeNS(auri,k.getQName(),aval);
}
// Append the xmlns... attributes