sboag 00/11/15 09:24:02
Modified: java/src/org/apache/xalan/utils TreeWalker.java
Log:
Use "" instead of null, as Xerces likes "" for the
name of the default namespace. Fix attributed
to "Steven Murray" <[EMAIL PROTECTED]>.
Revision Changes Path
1.12 +8 -2 xml-xalan/java/src/org/apache/xalan/utils/TreeWalker.java
Index: TreeWalker.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/utils/TreeWalker.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- TreeWalker.java 2000/11/13 16:27:24 1.11
+++ TreeWalker.java 2000/11/15 17:24:02 1.12
@@ -261,8 +261,11 @@
if (attrName.equals("xmlns") || attrName.startsWith("xmlns:"))
{
int index;
+ // Use "" instead of null, as Xerces likes "" for the
+ // name of the default namespace. Fix attributed
+ // to "Steven Murray" <[EMAIL PROTECTED]>.
String prefix = (index = attrName.indexOf(":")) < 0
- ? null : attrName.substring(index + 1);
+ ? "" : attrName.substring(index + 1);
this.m_contentHandler.startPrefixMapping(prefix,
attr.getNodeValue());
@@ -385,8 +388,11 @@
if (attrName.equals("xmlns") || attrName.startsWith("xmlns:"))
{
int index;
+ // Use "" instead of null, as Xerces likes "" for the
+ // name of the default namespace. Fix attributed
+ // to "Steven Murray" <[EMAIL PROTECTED]>.
String prefix = (index = attrName.indexOf(":")) < 0
- ? null : attrName.substring(index + 1);
+ ? "" : attrName.substring(index + 1);
this.m_contentHandler.endPrefixMapping(prefix);
}