morten      01/11/05 03:27:05

  Modified:    java/src/org/apache/xalan/xsltc/dom DOMImpl.java
  Log:
  A fix for ancestor iterators that are started using an attribute node.
  PR:           bugzilla 4602
  Obtained from:        `n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.57      +4 -3      
xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java
  
  Index: DOMImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- DOMImpl.java      2001/10/31 10:19:36     1.56
  +++ DOMImpl.java      2001/11/05 11:27:04     1.57
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: DOMImpl.java,v 1.56 2001/10/31 10:19:36 morten Exp $
  + * @(#)$Id: DOMImpl.java,v 1.57 2001/11/05 11:27:04 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -1337,8 +1337,9 @@
                     
        public NodeIterator setStartNode(int node) {
            if (_isRestartable) {
  -             if (node >= _firstAttributeNode) node = _parent[node];
  -             if (_includeSelf)
  +             if (node >= _firstAttributeNode)
  +                 _startNode = node = _parent[node];
  +             else if (_includeSelf)
                    _startNode = node;
                else
                    _startNode = _parent[node];
  
  
  

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

Reply via email to