You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/09/29 18:25:27 UTC
cvs commit: xml-xalan/java/src/org/apache/xpath/patterns NodeTest.java
mmidy 00/09/29 09:25:26
Modified: java/src/org/apache/xpath/patterns NodeTest.java
Log:
A root match has a score of 0.5
Revision Changes Path
1.6 +1 -0 xml-xalan/java/src/org/apache/xpath/patterns/NodeTest.java
Index: NodeTest.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/patterns/NodeTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- NodeTest.java 2000/09/13 22:14:37 1.5
+++ NodeTest.java 2000/09/29 16:25:24 1.6
@@ -180,6 +180,7 @@
switch(nodeBit)
{
case NodeFilter.SHOW_DOCUMENT:
+ return SCORE_OTHER;
case NodeFilter.SHOW_COMMENT:
return m_score;