cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: rev 36590 - cocoon/trunk/src/java/org/apache/cocoon/components/modules/input
Date Thu, 19 Aug 2004 07:04:40 GMT
Author: bruno
Date: Thu Aug 19 00:04:39 2004
New Revision: 36590

Modified:
   cocoon/trunk/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java
Log:
Enable calling methods on objects, which didn't work anymore since
upgrade to jxpath 1.2


Modified: cocoon/trunk/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java	Thu
Aug 19 00:04:39 2004
@@ -30,7 +30,7 @@
 
 /**
  * @author <a href="mailto:haul@apache.org">Christian Haul</a>
- * @version CVS $Id: JXPathHelper.java,v 1.2 2004/03/05 13:02:48 bdelacretaz Exp $
+ * @version CVS $Id$
  */
 public class JXPathHelper {
 
@@ -54,6 +54,9 @@
         FunctionLibrary library = new FunctionLibrary();
         getFunctions(library, config);
         getPackages(library, config);
+        // the following is necessary to be able to use methods on objects without
+        // explicitely registering extension functions (see PackageFunctions javadoc)
+        library.addFunctions(new PackageFunctions("", null));
         return new JXPathHelperConfiguration(library, lenient);
     }
 

Mime
View raw message