--- /home/cpdev/src/classpath/gnu/xml/transform/TextNode.java	2005-07-02 21:03:17.000000000 +0000
+++ gnu/xml/transform/TextNode.java	2005-06-30 05:34:22.000000000 +0000
@@ -56,23 +56,20 @@
 
   final boolean disableOutputEscaping;
 
-  TextNode(boolean disableOutputEscaping)
+  TextNode(TemplateNode children, TemplateNode next,
+           boolean disableOutputEscaping)
   {
+    super(children, next);
     this.disableOutputEscaping = disableOutputEscaping;
   }
 
   TemplateNode clone(Stylesheet stylesheet)
   {
-    TemplateNode ret = new TextNode(disableOutputEscaping);
-    if (children != null)
-      {
-        ret.children = children.clone(stylesheet);
-      }
-    if (next != null)
-      {
-        ret.next = next.clone(stylesheet);
-      }
-    return ret;
+    return new TextNode((children == null) ? null :
+                        children.clone(stylesheet),
+                        (next == null) ? null :
+                        next.clone(stylesheet),
+                        disableOutputEscaping);
   }
 
   void doApply(Stylesheet stylesheet, QName mode,
