jkesselm    01/05/21 10:28:57

  Modified:    java/src/org/apache/xml/dtm Tag: DTM_EXP DTMTreeWalker.java
  Log:
  Docs
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +5 -2      
xml-xalan/java/src/org/apache/xml/dtm/Attic/DTMTreeWalker.java
  
  Index: DTMTreeWalker.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/Attic/DTMTreeWalker.java,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -r1.1.2.7 -r1.1.2.8
  --- DTMTreeWalker.java        2001/05/21 17:22:40     1.1.2.7
  +++ DTMTreeWalker.java        2001/05/21 17:28:51     1.1.2.8
  @@ -67,7 +67,9 @@
   /**
    * <meta name="usage" content="advanced"/>
    * This class does a pre-order walk of the DTM tree, calling a ContentHandler
  - * interface as it goes.
  + * interface as it goes. As such, it's more like the Visitor design pattern
  + * than like the DOM's TreeWalker.
  + *
    * I think normally this class should not be needed, because 
    * of DTM#dispatchToEvents.
    */
  @@ -196,7 +198,8 @@
     {
       // %OPT% Can we simplify the loop conditionals by adding:
       //               if(top==DTM.NULL) top=0
  -    // ?
  +    // -- or by simply ignoring this case and relying on the fact that
  +    // pos will never equal DTM.NULL until we're ready to exit?
   
       while (DTM.NULL != pos)
       {
  
  
  

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

Reply via email to