rossb 00/10/27 00:36:02
Modified: src/org/apache/cocoon/xml Tag: xml-cocoon2
NamespacesTable.java
Log:
Fixed the bug with null namespaces. Patch by Gary Peskin.
Revision Changes Path
No revision
No revision
1.1.2.2 +3 -2
xml-cocoon/src/org/apache/cocoon/xml/Attic/NamespacesTable.java
Index: NamespacesTable.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/xml/Attic/NamespacesTable.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- NamespacesTable.java 2000/09/05 17:25:30 1.1.2.1
+++ NamespacesTable.java 2000/10/27 07:36:01 1.1.2.2
@@ -16,7 +16,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Pierpaolo Fumagalli</a>
* (Apache Software Foundation, Exoffice Technologies)
- * @version CVS $Revision: 1.1.2.1 $ $Date: 2000/09/05 17:25:30 $
+ * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/10/27 07:36:01 $
*/
public class NamespacesTable {
/** The initial namespace declaration. */
@@ -215,7 +215,8 @@
else uri=temp;
}
NameImpl name=new NameImpl();
- name.uri=uri;
+ if (uri.length() > 0) name.uri=uri;
+ else name.uri=null;
name.raw=raw;
name.prefix=prefix;
name.local=local;