bradford    01/12/10 13:48:19

  Modified:    java/src/org/apache/xindice/core/query
                        XPathQueryResolver.java
  Log:
  Modified XPathQueryResolver to create a new XPathContext for each document
  that is returned from the indexing system.  This will allow queries to work
  with Xalan 2.2.Dnn, and also 'slightly' speeds up performance on 2.0.1.
  
  Revision  Changes    Path
  1.3       +2 -3      
xml-xindice/java/src/org/apache/xindice/core/query/XPathQueryResolver.java
  
  Index: XPathQueryResolver.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xindice/java/src/org/apache/xindice/core/query/XPathQueryResolver.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XPathQueryResolver.java   2001/12/07 21:49:54     1.2
  +++ XPathQueryResolver.java   2001/12/10 21:48:19     1.3
  @@ -56,7 +56,7 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * $Id: XPathQueryResolver.java,v 1.2 2001/12/07 21:49:54 bradford Exp $
  + * $Id: XPathQueryResolver.java,v 1.3 2001/12/10 21:48:19 bradford Exp $
    */
   
   import org.apache.xindice.core.*;
  @@ -955,8 +955,6 @@
       */
      
      private class ResultSet implements NodeSet {
  -      public XPathContext xpc = new XPathContext();
  -      
         public Collection context;
         public String query;
         public ErrorListener errors;
  @@ -1003,6 +1001,7 @@
                            
                  Node n = d.getDocumentElement();
                  
  +               XPathContext xpc = new XPathContext();
                  PrefixResolver pfx;
                  if ( pr == null ) {
                     pfx = new PrefixResolverDefault(d.getDocumentElement());
  
  
  

Reply via email to