zongaro 2002/09/20 12:15:20
Modified: java/src/org/apache/xalan/xsltc/dom Tag: XSLTC_DTM
SAXImpl.java
Log:
Some cosmetic code clean-up.
Revision Changes Path
No revision
No revision
1.1.2.10 +3 -28
xml-xalan/java/src/org/apache/xalan/xsltc/dom/Attic/SAXImpl.java
Index: SAXImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/Attic/SAXImpl.java,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -r1.1.2.9 -r1.1.2.10
--- SAXImpl.java 20 Sep 2002 01:22:19 -0000 1.1.2.9
+++ SAXImpl.java 20 Sep 2002 19:15:19 -0000 1.1.2.10
@@ -1215,37 +1215,12 @@
case DTM.ROOT_NODE:
case DTM.DOCUMENT_NODE:
case DTM.TEXT_NODE:
- //case DTM.ELEMENT_NODE:
- //case DTM.ATTRIBUTE_NODE:
case DTM.COMMENT_NODE:
return EMPTYSTRING;
case DTM.NAMESPACE_NODE:
- //final int index = _prefix[node];
- // if (index < _prefixArray.length)
- return this.getLocalName(nodeh); //_prefixArray[index];
- //else
- //return EMPTYSTRING;
- /*case DTM.PROCESSING_INSTRUCTION_NODE:
- final String pistr = makeStringValue(node);
- final int col = pistr.indexOf(' ');
- if (col > -1)
- return(pistr.substring(0,col));
- else
- return pistr;*/
+ return this.getLocalName(nodeh);
default:
return super.getNodeName(nodeh);
- /* // Construct the local part (omit '@' for attributes)
- String name = getLocalName(node);
- if (node >= _firstAttributeNode)
- name = name.substring(1);
-
- final int pi = _prefix[node];
- if (pi > 0) {
- final String prefix = _prefixArray[pi];
- if (prefix != EMPTYSTRING)
- name = prefix+':'+name;
- }
- return name;*/
}
}
@@ -1256,8 +1231,8 @@
{
if (node == DTM.NULL)
return "";
- String s;
- return (( s = getNamespaceURI(node)) == null ? "" : s);
+ String s;
+ return (s = getNamespaceURI(node)) == null ? EMPTYSTRING : s;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]