You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mark H <ma...@markhorgan.com> on 2004/02/26 14:14:40 UTC

Problems with JXPathMetaModule

I can't seem to get jxpath input module working. Have other people got it
working? Looking into the code it keeps returning null for the context
object in the getContextObject() method. I'm using version 2.1.4 of cocoon.

cocoon.xconf:
<component-instance
class="org.apache.cocoon.components.modules.input.JXPathMetaModule"
logger="core.modules.input" name="my-jxpath">
		<lenient>false</lenient>
		<input-module name="request-attr"/>
	</component-instance>

flow:
model.page1="test/success.xml";
cocoon.request.setAttribute("model",model);

sitemap.xmap:
<map:generate src="{my-jxpath:model/page1}"/>

Mark H



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org