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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to