You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@locus.apache.org on 2000/11/15 18:24:03 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/utils TreeWalker.java
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" <sm...@ebt.com>.
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" <sm...@ebt.com>.
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" <sm...@ebt.com>.
String prefix = (index = attrName.indexOf(":")) < 0
- ? null : attrName.substring(index + 1);
+ ? "" : attrName.substring(index + 1);
this.m_contentHandler.endPrefixMapping(prefix);
}