You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by tm...@apache.org on 2001/09/13 14:30:15 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler ParentLocationPath.java

tmiller     01/09/13 05:30:15

  Modified:    java/src/org/apache/xalan/xsltc/compiler
                        ParentLocationPath.java
  Log:
  added test for ParentLocationPath instance
  
  Revision  Changes    Path
  1.5       +5 -5      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/ParentLocationPath.java
  
  Index: ParentLocationPath.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/ParentLocationPath.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ParentLocationPath.java	2001/08/27 09:07:19	1.4
  +++ ParentLocationPath.java	2001/09/13 12:30:15	1.5
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: ParentLocationPath.java,v 1.4 2001/08/27 09:07:19 morten Exp $
  + * @(#)$Id: ParentLocationPath.java,v 1.5 2001/09/13 12:30:15 tmiller Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -115,10 +115,10 @@
   
       public boolean descendantAxis() {
   	if (_step instanceof Step) {
  -	    int axis = ((Step)_step).getAxis();
  -	    if ((axis == Axis.DESCENDANT) ||
  -		(axis == Axis.DESCENDANTORSELF))
  -		return(true);
  +	    return ((Step)_step).descendantAxis();
  +	}
  +	else if (_step instanceof ParentLocationPath) {
  +	    return ((ParentLocationPath)_step).descendantAxis();
   	}
   	return(false);
       }
  
  
  

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