This patch, committed, fixes a bug in the XSL transformer where you have a
with-param node with empty content.

2007-07-01  Chris Burdess  <[EMAIL PROTECTED]>

        * gnu/xml/transform/WithParam.java: Handle case where content is
          empty.
-- 
Chris Burdess
Index: gnu/xml/transform/WithParam.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/xml/transform/WithParam.java,v
retrieving revision 1.3
diff -u -r1.3 WithParam.java
--- gnu/xml/transform/WithParam.java    9 Jul 2005 20:38:35 -0000       1.3
+++ gnu/xml/transform/WithParam.java    1 Jul 2007 11:10:30 -0000
@@ -81,6 +81,10 @@
       {
         return select.evaluate(context, pos, len);
       }
+    else if (content == null)
+      {
+        return "";
+      }
     else
       {
         Document doc = (context instanceof Document) ? (Document) context :

Reply via email to