zongaro     2004/06/17 10:37:37

  Modified:    java/src/org/apache/xpath/axes ChildIterator.java
  Log:
  Fix for Bugzilla bug 28879.  Classes derived from NodeTest need to ensure
  that initNodeTest is called to set the filter for the kinds of nodes accepted.
  Without this change, ChildIterator will reject all nodes.
  
  Patch reviewed by Christine Li (jycli () ca ! ibm ! com).
  
  Revision  Changes    Path
  1.16      +5 -1      
xml-xalan/java/src/org/apache/xpath/axes/ChildIterator.java
  
  Index: ChildIterator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/axes/ChildIterator.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ChildIterator.java        17 Feb 2004 04:32:08 -0000      1.15
  +++ ChildIterator.java        17 Jun 2004 17:37:37 -0000      1.16
  @@ -19,6 +19,7 @@
   package org.apache.xpath.axes;
   
   import org.apache.xml.dtm.DTM;
  +import org.apache.xml.dtm.DTMFilter;
   import org.apache.xpath.XPathContext;
   import org.apache.xpath.compiler.Compiler;
   
  @@ -46,6 +47,9 @@
             throws javax.xml.transform.TransformerException
     {
       super(compiler, opPos, analysis, false);
  +
  +    // This iterator matches all kinds of nodes
  +    initNodeTest(DTMFilter.SHOW_ALL);
     }
     
     /**
  
  
  

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

Reply via email to