You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gk...@apache.org on 2007/09/15 00:40:49 UTC

svn commit: r575808 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java

Author: gkossakowski
Date: Fri Sep 14 15:40:40 2007
New Revision: 575808

URL: http://svn.apache.org/viewvc?rev=575808&view=rev
Log:
COCOON-2108: Construct xmodule:flow-attr does not accept document object. Thanks to Hugh Sparks for contributing the patch and Kazo Csaba for reporting the issue on mailing list.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java?rev=575808&r1=575807&r2=575808&view=diff
==============================================================================
--- 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 Fri Sep 14 15:40:40 2007
@@ -95,8 +95,7 @@
             JXPathContext jxContext = JXPathContext.newContext(contextObj);
             setup(setup, jxContext, modeConf);
 
-            Object obj = jxContext.getValue(name);
-            return obj;
+            return jxContext.selectSingleNode(name);
         } catch (Exception e) {
             throw new ConfigurationException("Module does not support <" + name + ">" + "attribute.", e);
         }