Author: michi
Date: Fri Feb  4 04:41:52 2005
New Revision: 151345

URL: http://svn.apache.org/viewcvs?view=rev&rev=151345
Log:
thanks to Josias Thoeny a bug re default namespace and attributes keeping the 
non-empty prefix should be fixed by this patch

Modified:
    
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java

Modified: 
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java
URL: 
http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java?view=diff&r1=151344&r2=151345
==============================================================================
--- 
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java
 (original)
+++ 
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java
 Fri Feb  4 04:41:52 2005
@@ -396,7 +396,7 @@
                                 // if the prefix is null, or the prefix has 
not been declared, or conflicts with an in-scope binding
                                 if (declaredUri == null || 
!declaredUri.equals(attrNsURI)) {
                                     String availablePrefix = 
currentElementInfo.findPrefix(attrNsURI);
-                                    if (availablePrefix != null)
+                                    if (availablePrefix != null && 
!availablePrefix.equals(""))
                                         assignedAttrPrefix = availablePrefix;
                                     else {
                                         if (attrPrefix != null && declaredUri 
== null) {


Reply via email to