sboag 01/05/27 22:28:56
Modified: java/src/org/apache/xml/dtm/ref/dom2dtm Tag: DTM_EXP
DOM2DTM.java
Log:
Fixed ugly bug that I introduced when breaking up the original
array... I inverted a statement in nextNode.
Also, increment m_size in addNode.
In my d2d test, which already has a fair number of exclusions
(which I should probably un-exclude for the new stuff), there
were five failures, having to do with copying subtrees. I'll
look at these in a while.
Revision Changes Path
No revision
No revision
1.1.2.4 +4 -1
xml-xalan/java/src/org/apache/xml/dtm/ref/dom2dtm/Attic/DOM2DTM.java
Index: DOM2DTM.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/dom2dtm/Attic/DOM2DTM.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- DOM2DTM.java 2001/05/28 04:07:32 1.1.2.3
+++ DOM2DTM.java 2001/05/28 05:28:56 1.1.2.4
@@ -224,6 +224,7 @@
{
int nodeIndex = m_nodes.size();
+ m_size++;
ensureSize(nodeIndex);
int type = node.getNodeType();
@@ -306,6 +307,8 @@
exnt.getExpandedTypeID(type);
m_exptype[nodeIndex] = expandedNameID;
+
+ indexNode(expandedNameID, nodeIndex);
if (DTM.NULL != previousSibling)
m_nextsib[previousSibling] = nodeIndex;
@@ -467,7 +470,7 @@
if (null == nextNode)
{
m_nextsib[posInfo] = NULL;
- m_parent[posInfo] = (short)currentIndexHandle;
+ currentIndexHandle = m_parent[posInfo];
posInfo = currentIndexHandle;
m_levelInfo.quickPop(LEVELINFO_NPERLEVEL);
pos = pos.getParentNode();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]