xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zong...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Date Fri, 27 Feb 2004 01:59:31 GMT
zongaro     2004/02/26 17:59:31

  Modified:    java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
  Added:       java/src/org/apache/xalan/xsltc/dom
                        ForwardPositionIterator.java
  Log:
  Revived ForwardPositionIterator class and BasisLibrary.positionF purely to
  support backwards compatibility with translets compiled with earlier versions
  of XSLTC.  New code should not reference either.
  
  Reviewed by Christine Li (jycli () ca ! ibm ! com).
  
  Revision  Changes    Path
  1.9       +18 -58    xml-xalan/java/src/org/apache/xalan/xsltc/dom/ForwardPositionIterator.java
  
  
  
  
  1.76      +12 -6     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.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- BasisLibrary.java	24 Feb 2004 03:55:48 -0000	1.75
  +++ BasisLibrary.java	27 Feb 2004 01:59:31 -0000	1.76
  @@ -53,11 +53,6 @@
   /**
    * Standard XSLT functions. All standard functions expect the current node 
    * and the DOM as their last two arguments.
  - * @author Jacek Ambroziak
  - * @author Santiago Pericas-Geertsen
  - * @author Morten Jorgensen
  - * @author Erwin Bolwidt <ejb@klomp.org>
  - * @author John Howard <johnh@schemasoft.com>
    */
   public final class BasisLibrary implements Operators {
   
  @@ -68,6 +63,17 @@
        */
       public static int countF(DTMAxisIterator iterator) {
   	return(iterator.getLast());
  +    }
  +
  +    /**
  +     * Standard function position()
  +     * @deprecated This method exists only for backwards compatibility with old
  +     *             translets.  New code should not reference it.
  +     */
  +    public static int positionF(DTMAxisIterator iterator) {
  +        return iterator.isReverse()
  +                     ? iterator.getLast() - iterator.getPosition() + 1
  +                     : iterator.getPosition();
       }
   
       /**
  
  
  

---------------------------------------------------------------------
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