xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mor...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/dom DOMImpl.java
Date Mon, 05 Nov 2001 11:27:05 GMT
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:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  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: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message