Instructions for this input module are very poor, so if I configure
JXPathMetaModule like this:
<component-instance
class="org.apache.cocoon.components.modules.input.JXPathMetaModule"
logger="core.modules.input" name="myxpath">
<input-module name="request-param"/>
<function name="java.lang.String" prefix="str"/>
</component-instance>
how would I use it? Simple example would do.
tnx
Weez
----- Original Message -----
From: "Antonio Gallardo" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, May 29, 2005 12:57 PM
Subject: Re: Pipeline XPath Input module
On Dom, 29 de Mayo de 2005, 5:47, WeeZard dijo:
Is it possible to write an Input Module that would retrieve a value using
an
XPath expression from the document in the pipeline.
For example:
<map:generate src="test.xml">
<map:transform src="first.xsl">
<map:transform src="{xpath:document/[EMAIL PROTECTED]
<map:serialize>
</map:generate>
I think this kind of input module would be very useful and I'm suprised
it
hasn't been writen yet. Or at least I haven't found it.
See:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/JXPathMetaModule.html
Is this OK?
Best Regards,
Antonio Gallardo.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]