--- /home/cpdev/src/classpath/gnu/xml/transform/TransformerImpl.java	2006-01-16 17:32:45.000000000 +0000
+++ gnu/xml/transform/TransformerImpl.java	2006-01-13 17:34:15.000000000 +0000
@@ -162,7 +162,7 @@
           }
         // Make a copy of the source node, and strip it
         context = context.cloneNode(true);
-        strip(stylesheet, context);
+        strip(context);
         // XSLT transformation
         try
           {
@@ -321,7 +321,7 @@
     if (indent)
       {
         parent.normalize();
-        strip(stylesheet, parent);
+        strip(parent);
         Document resultDoc = (parent instanceof Document) ?
           (Document) parent :
           parent.getOwnerDocument();
@@ -393,7 +393,7 @@
   /**
    * Strip whitespace from the source tree.
    */
-  static boolean strip(Stylesheet stylesheet, Node node)
+  boolean strip(Node node)
     throws TransformerConfigurationException
   {
     short nt = node.getNodeType();
@@ -444,7 +444,7 @@
         Node child = node.getFirstChild();
         while (child != null)
           {
-            boolean remove = strip(stylesheet, child);
+            boolean remove = strip(child);
             Node next = child.getNextSibling();
             if (remove)
               node.removeChild(child);
@@ -691,7 +691,7 @@
                 for (Iterator i = children.iterator(); i.hasNext(); )
                   {
                     ctx = (Node) i.next();
-                    reindent(doc, ctx, offset);
+                    reindent(doc, ctx, offset + 1);
                   }
               }
             else
@@ -709,9 +709,9 @@
                   }
                 buf = new StringBuffer();
                 buf.append('\n');
+                ws = buf.toString();
                 for (int i = 0; i < offset; i++)
                   buf.append(INDENT_WHITESPACE);
-                ws = buf.toString();
                 node.appendChild(doc.createTextNode(ws));
               }
           }
