morten 01/10/16 04:32:21
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Log:
Code cleanup.
PR: n/a
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.47 +4 -4
xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java
Index: DOMImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- DOMImpl.java 2001/10/16 11:10:25 1.46
+++ DOMImpl.java 2001/10/16 11:32:20 1.47
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: DOMImpl.java,v 1.46 2001/10/16 11:10:25 morten Exp $
+ * @(#)$Id: DOMImpl.java,v 1.47 2001/10/16 11:32:20 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -921,8 +921,7 @@
if (isElement(node)) {
_attribute = _lengthOrAttr[_startNode = node];
// Skip namespace nodes
- while ((_attribute != NULL) &&
- (_type[_attribute] == NAMESPACE))
+ while (_type[_attribute] == NAMESPACE)
_attribute = _nextSibling[_attribute];
}
else {
@@ -3109,6 +3108,7 @@
_parentStack[0] = ROOTNODE; // root
_currentNode = ROOTNODE + 1;
_currentAttributeNode = 1;
+ _type2[0] = NAMESPACE;
startPrefixMapping(EMPTYSTRING, EMPTYSTRING);
}
@@ -3207,7 +3207,7 @@
_lengthOrAttr[node] = attr;
for (int i = 0; i<count; i++) {
attr = makeAttributeNode(node, attributes, i);
- _parent2[attr] = node;;
+ _parent2[attr] = node;
_nextSibling2[attr] = attr + 1;
}
_nextSibling2[attr] = DOM.NULL;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]