I am going to have to revert the change below to JXPathHelper as it has
broken XMLFileModule. The sample site no longer works correctly.
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 -0000
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
X-Mailer: svnmailer-1.0.8
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Checked: Checked by ClamAV on apache.org
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);
}