Why don't you consult the jxpath web page? http://jakarta.apache.org/commons/jxpath/ 
I have used under Cocoon 2.0.4 custom functions without problems, but don't remember 
the details.

--------
David

-----Mensaje original-----
De: Roman Hrivik [mailto:[EMAIL PROTECTED]
Enviado el: mi�rcoles, 18 de febrero de 2004 12:41
Para: [EMAIL PROTECTED]
Asunto: JXPathMetaModule configuration and sample use for function, package


Hi

Does anyone uses JXPathMetaModule with function or package parameter ?

I have this in my cocoon.xconf :
<component-instance

class="org.apache.cocoon.components.modules.input.JXPathMetaModule"
       logger="core.modules.input.utils" name="utils">


   <package name="my.own.package" prefix="ldaputil"/>

</component-instance>


I tried to use this module in sitemap like this
<map:parameter name="maindn"
value="{utils:ldaputil.DNHelper.getFirstEntry({chain:dn})}"></map:parame
ter>





but nothing was working
it seems that this module is always looking in 'request-attr' module
what is wrong ?
can anybody point me to right direction ?


there is my logs:
DEBUG   (2004-02-18) 12:30.20:515   [core.modules.input.utils]
(Unknown-URI) Unknown-thread/JXPathMetaModule: adding Package
my.own.package to functions
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: modeConf is null
this.inputConf is
[EMAIL PROTECTED]
mConf is null this.input is
[EMAIL PROTECTED]
this.defaultInput is request-attr inputName is null parameter is
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: MetaModule performing op
GET_VALUE on statically assigned module 'request-attr', using config
null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: using request-attr as
[EMAIL PROTECTED]
for 0 () and
[EMAIL PROTECTED]
gives null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: returning an null as null
















---------------------------------------------------------------------
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]

Reply via email to