--- /home/cpdev/src/classpath/gnu/xml/transform/CopyOfNode.java	2005-07-10 05:32:33.000000000 +0000
+++ gnu/xml/transform/CopyOfNode.java	2005-06-30 05:34:21.000000000 +0000
@@ -61,23 +61,19 @@
 
   final Expr select;
 
-  CopyOfNode(Expr select)
+  CopyOfNode(TemplateNode children, TemplateNode next, Expr select)
   {
+    super(children, next);
     this.select = select;
   }
 
   TemplateNode clone(Stylesheet stylesheet)
   {
-    TemplateNode ret = new CopyOfNode(select.clone(stylesheet));
-    if (children != null)
-      {
-        ret.children = children.clone(stylesheet);
-      }
-    if (next != null)
-      {
-        ret.next = next.clone(stylesheet);
-      }
-    return ret;
+    return new CopyOfNode((children == null) ? null :
+                          children.clone(stylesheet),
+                          (next == null) ? null :
+                          next.clone(stylesheet),
+                          select.clone(stylesheet));
   }
 
   void doApply(Stylesheet stylesheet, QName mode,
@@ -170,15 +166,6 @@
       }
   }
   
-  public boolean references(QName var)
-  {
-    if (select != null && select.references(var))
-      {
-        return true;
-      }
-    return super.references(var);
-  }
-  
   public String toString()
   {
     StringBuffer buf = new StringBuffer(getClass().getName());
