morten      01/10/18 03:57:41

  Modified:    java/src/org/apache/xalan/xsltc/compiler
                        FilterParentPath.java
  Log:
  Added node ordering to FilterParentPath
  PR:           bugzilla 4248
  Obtained from:        n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.7       +12 -12    
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FilterParentPath.java
  
  Index: FilterParentPath.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FilterParentPath.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FilterParentPath.java     2001/10/17 13:35:54     1.6
  +++ FilterParentPath.java     2001/10/18 10:57:41     1.7
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: FilterParentPath.java,v 1.6 2001/10/17 13:35:54 morten Exp $
  + * @(#)$Id: FilterParentPath.java,v 1.7 2001/10/18 10:57:41 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -153,18 +153,18 @@
                                              "includeSelf",
                                              "()"+NODE_ITERATOR_SIG);
            il.append(new INVOKEVIRTUAL(incl));
  +     }
   
  -         if (!(getParent() instanceof RelativeLocationPath) &&
  -             !(getParent() instanceof FilterParentPath)) {
  -             String params = "("+NODE_ITERATOR_SIG+"I)"+NODE_ITERATOR_SIG;
  -             final int order = cpg.addInterfaceMethodref(DOM_INTF,
  -                                                         "orderNodes",
  -                                                         params);
  -             il.append(methodGen.loadDOM());
  -             il.append(SWAP);
  -             il.append(methodGen.loadContextNode());
  -             il.append(new INVOKEINTERFACE(order, 3));
  -         }
  +     if (!(getParent() instanceof RelativeLocationPath) &&
  +         !(getParent() instanceof FilterParentPath)) {
  +         String params = "("+NODE_ITERATOR_SIG+"I)"+NODE_ITERATOR_SIG;
  +         final int order = cpg.addInterfaceMethodref(DOM_INTF,
  +                                                     "orderNodes",
  +                                                     params);
  +         il.append(methodGen.loadDOM());
  +         il.append(SWAP);
  +         il.append(methodGen.loadContextNode());
  +         il.append(new INVOKEINTERFACE(order, 3));
        }
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to