xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mor...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java
Date Tue, 28 Aug 2001 13:23:30 GMT
morten      01/08/28 06:23:30

  Modified:    java/src/org/apache/xalan/xsltc/dom DupFilterIterator.java
  Log:
  A fix for the position() function when using duplicate filter iterators.
  PR:		n/
  Obtained from:	N/A
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.6       +3 -3      xml-xalan/java/src/org/apache/xalan/xsltc/dom/DupFilterIterator.java
  
  Index: DupFilterIterator.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DupFilterIterator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DupFilterIterator.java	2001/08/17 13:17:45	1.5
  +++ DupFilterIterator.java	2001/08/28 13:23:30	1.6
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: DupFilterIterator.java,v 1.5 2001/08/17 13:17:45 morten Exp $
  + * @(#)$Id: DupFilterIterator.java,v 1.6 2001/08/28 13:23:30 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -143,7 +143,7 @@
       private boolean isDup(int node) {
   	boolean retval = false;
   	int size = _data.length;
  -	for ( int i=0; i<size; i++ ){
  +	for (int i=0; i<size; i++) {
   	    if (_data[i] == node) {
   		retval = true; break;
   	    }
  @@ -156,7 +156,7 @@
        * node set covered by this iterator, not within the DOM.
        */
       public int getPosition() {
  -	return (_last - _current);
  +	return (_current);
       }
   
       /**
  
  
  

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


Mime
View raw message