mkwan       2002/12/04 12:38:32

  Modified:    java/src/org/apache/xml/dtm/ref/dom2dtm DOM2DTM.java
  Log:
  Performance fix
  
  Reuse the node name in the preceding statement.
  
  Revision  Changes    Path
  1.29      +1 -1      xml-xalan/java/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTM.java
  
  Index: DOM2DTM.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTM.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- DOM2DTM.java      10 Apr 2002 20:33:16 -0000      1.28
  +++ DOM2DTM.java      4 Dec 2002 20:38:32 -0000       1.29
  @@ -1029,7 +1029,7 @@
         {
        // XSLT treats PIs, and possibly other things, as having QNames.
        String qname = newnode.getNodeName();
  -     if('#'==newnode.getNodeName().charAt(0))
  +     if('#'==qname.charAt(0))
        {
          //  Match old default for this function
          // This conversion may or may not be necessary
  
  
  

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

Reply via email to