morten      01/06/06 05:40:01

  Modified:    java/src/org/apache/xalan/xsltc/dom DOMImpl.java
  Log:
  Minor fix to make sure that attributes are processed in the correct order.
  PR:           n/a
  Obtained from:        n.a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.9       +5 -5      
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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DOMImpl.java      2001/05/22 17:26:31     1.8
  +++ DOMImpl.java      2001/06/06 12:39:54     1.9
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: DOMImpl.java,v 1.8 2001/05/22 17:26:31 morten Exp $
  + * @(#)$Id: DOMImpl.java,v 1.9 2001/06/06 12:39:54 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -2806,14 +2806,14 @@
            linkChildren(node);
            _parentStack[++_sp] = node;
   
  -         int count = attributes.getLength();
  +         final int count = attributes.getLength();
   
  -         // Process attribute list in reverse order and create attr nodes
  +         // Process attribute list and create attr nodes
            if (count > 0) {
                int attr = _currentAttributeNode + 1;
                _lengthOrAttr[node] = attr;
  -             while (count > 0) {
  -                 attr = makeAttributeNode(node, attributes, (--count));
  +             for (int i = 0; i<count; i++) {
  +                 attr = makeAttributeNode(node, attributes, i);
                    _nextSibling2[attr] = attr + 1;
                }
                _nextSibling2[attr] = DOM.NULL;
  
  
  

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

Reply via email to