You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jk...@apache.org on 2001/08/10 19:58:04 UTC
cvs commit: xml-xalan/java/src/org/apache/xpath/functions FuncGenerateId.java
jkesselm 01/08/10 10:58:04
Modified: java/src/org/apache/xpath/functions FuncGenerateId.java
Log:
Increasing the number of bits used to identify DTM nodes, at the expense of decreasing the number of DTMs that a DTMManager can track simultaneously. Some other code has been updated to track this change (and to better track posible future changes), as have the IDKEY testcases.
Revision Changes Path
1.6 +7 -5 xml-xalan/java/src/org/apache/xpath/functions/FuncGenerateId.java
Index: FuncGenerateId.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/functions/FuncGenerateId.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- FuncGenerateId.java 2001/06/12 19:16:35 1.5
+++ FuncGenerateId.java 2001/08/10 17:58:04 1.6
@@ -89,11 +89,13 @@
if (DTM.NULL != which)
{
- // Uglieness to get the unique ID to match the test gold.
- int docID = (which & org.apache.xml.dtm.DTMManager.IDENT_DTM_DEFAULT) >> 20;
- docID = (docID-1) << 20;
- int id = ((which & org.apache.xml.dtm.DTMManager.IDENT_NODE_DEFAULT)+1) | docID;
- return new XString("N" + Integer.toHexString(id).toUpperCase());
+ // Note that this is a different value than in previous releases
+ // of Xalan. It's sensitive to the exact encoding of the node
+ // handle anyway, so fighting to maintain backward compatability
+ // really didn't make sense; it may change again as we continue
+ // to experiment with balancing document and node numbers within
+ // that value.
+ return new XString("N" + Integer.toHexString(which).toUpperCase());
}
else
return XString.EMPTYSTRING;
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org