OSDN Git Service

PR classpath/29362:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2006 19:31:56 +0000 (19:31 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2006 19:31:56 +0000 (19:31 +0000)
* gnu/xml/transform/TransformerImpl.java (transform): Only strip if
there is a stylesheet.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117612 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/classpath/ChangeLog.gcj
libjava/classpath/gnu/xml/transform/TransformerImpl.java

index 56d1cb9..9ed4b4c 100644 (file)
@@ -1,3 +1,9 @@
+2006-10-10  Tom Tromey  <tromey@redhat.com>
+
+       PR classpath/29362:
+       * gnu/xml/transform/TransformerImpl.java (transform): Only strip if
+       there is a stylesheet.
+
 2006-10-05  Gary Benson  <gbenson@redhat.com>
 
        * java/net/SocketPermission.java
index 732a911..f43b660 100644 (file)
@@ -327,7 +327,8 @@ class TransformerImpl
             domDoc.setCheckWellformedness(false);
           }
         parent.normalize();
-        strip(stylesheet, parent);
+        if (stylesheet != null)
+          strip(stylesheet, parent);
         Document resultDoc = (parent instanceof Document) ?
           (Document) parent :
           parent.getOwnerDocument();