You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/10/18 13:18:26 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java

morten      01/10/18 04:18:26

  Modified:    java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
  Log:
  Changed one of the compare() methods in the basis library to properly
  compare node sets.
  PR:		bugzilla 4242
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.22      +3 -3      xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
  
  Index: BasisLibrary.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- BasisLibrary.java	2001/10/02 11:17:32	1.21
  +++ BasisLibrary.java	2001/10/18 11:18:26	1.22
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: BasisLibrary.java,v 1.21 2001/10/02 11:17:32 morten Exp $
  + * @(#)$Id: BasisLibrary.java,v 1.22 2001/10/18 11:18:26 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -470,13 +470,13 @@
       public static boolean compare(NodeIterator left, NodeIterator right,
   				  int op, int node, DOM dom) {
   	int lnode;
  -	//left.reset();
  +	left.reset();
   	
   	while ((lnode = left.next()) != NodeIterator.END) {
   	    final String lvalue = dom.getNodeValue(lnode);
   	    
   	    int rnode;
  -	    //right.reset();
  +	    right.reset();
   	    while ((rnode = right.next()) != NodeIterator.END) {
   		if (compareStrings(lvalue, dom.getNodeValue(rnode), op, dom)) {
   		    return true;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org