You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2004/08/19 16:41:51 UTC
svn commit: rev 36612 - cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input
Author: bruno
Date: Thu Aug 19 07:41:50 2004
New Revision: 36612
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java
Log:
sync from trunk
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java Thu Aug 19 07:41:50 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);
}