bhakti      2004/02/20 11:30:40

  Modified:    java/src/org/apache/xalan/xsltc/trax DOM2TO.java
  Log:
  Fix for the bug in DOM2TO where there was a call to _handler.addAttribute
  which was moved to the if clause and hence attributes in no namespace were
  lost when using an identity transformation with DOMSource.
  
  Thanks to Henry Z. for pointing it out and Santiago for reviewing.  I have 
tested it locally. Please let me know if you see any issues with this.
  
  Revision  Changes    Path
  1.9       +4 -2      
xml-xalan/java/src/org/apache/xalan/xsltc/trax/DOM2TO.java
  
  Index: DOM2TO.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/DOM2TO.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DOM2TO.java       16 Feb 2004 22:57:21 -0000      1.8
  +++ DOM2TO.java       20 Feb 2004 19:30:40 -0000      1.9
  @@ -173,7 +173,9 @@
                        _handler.namespaceAfterStartElement(prefix, uriAttr);
                        _handler.addAttribute((prefix + ":" + qnameAttr)
                               , attr.getNodeValue());
  -                 }
  +                 } else {
  +                         _handler.addAttribute(qnameAttr, 
attr.getNodeValue());
  +                    }
                   }
            }
   
  
  
  

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

Reply via email to