cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r575808 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/modules/input/JXPathHelper.java
Date Fri, 14 Sep 2007 22:40:49 GMT
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);
         }



Mime
View raw message