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 2002/03/14 21:17:21 UTC

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

tmiller     02/03/14 12:17:21

  Modified:    java/src/org/apache/xalan/xsltc/compiler
                        ParentLocationPath.java
  Log:
  bug 5576, had to add a new test case in translate()
  to set includeself for step iterator, thanks to Santiago Pericas-Geersen
  
  Revision  Changes    Path
  1.16      +3 -1      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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ParentLocationPath.java	1 Feb 2002 20:07:08 -0000	1.15
  +++ ParentLocationPath.java	14 Mar 2002 20:17:21 -0000	1.16
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: ParentLocationPath.java,v 1.15 2002/02/01 20:07:08 tmiller Exp $
  + * @(#)$Id: ParentLocationPath.java,v 1.16 2002/03/14 20:17:21 tmiller Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -216,10 +216,12 @@
   	Expression stp = _step;
   	if (stp instanceof ParentLocationPath)
   	    stp = ((ParentLocationPath)stp).getStep();
  +
   	if ((_path instanceof Step) && (stp instanceof Step)) {
   	    final int path = ((Step)_path).getAxis();
   	    final int step = ((Step)stp).getAxis();
   	    if ((path == Axis.DESCENDANTORSELF && step == Axis.CHILD) ||
  +		(path == Axis.DESCENDANTORSELF && step == Axis.ATTRIBUTE) ||
   		(path == Axis.PRECEDING        && step == Axis.PARENT)) {
   		final int incl = cpg.addMethodref(STEP_ITERATOR_CLASS,
   						  "includeSelf",
  
  
  

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


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

Posted by Tom Amiro <To...@Sun.COM>.
Did you run the Xalan conf tests?
-- 
 Tom Amiro -- SQA Engineer
 Sun XML Technology Development
 voice: 781-442-0589 Fax: 781-442-1437
 eMail: tom.amiro@.sun.com