sboag       00/12/31 01:58:27

  Modified:    java/src/org/apache/xalan/templates ElemCopy.java
  Log:
  Check for document fragment as well as document for root node handling.
  
  Revision  Changes    Path
  1.11      +1 -1      
xml-xalan/java/src/org/apache/xalan/templates/ElemCopy.java
  
  Index: ElemCopy.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemCopy.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ElemCopy.java     2000/12/07 06:26:22     1.10
  +++ ElemCopy.java     2000/12/31 09:58:27     1.11
  @@ -137,7 +137,7 @@
       {
         short nodeType = sourceNode.getNodeType();
   
  -      if ((Node.DOCUMENT_NODE != nodeType))
  +      if ((Node.DOCUMENT_NODE != nodeType) && (Node.DOCUMENT_FRAGMENT_NODE 
!= nodeType))
         {
           ResultTreeHandler rthandler = transformer.getResultTreeHandler();
   
  
  
  

Reply via email to