cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@informatik.tu-darmstadt.de>
Subject Re: JXPathMetaModule configuration and sample use for function, package
Date Wed, 18 Feb 2004 15:20:46 GMT
Roman Hrivik wrote:

> OK I put chain module to cocoon.xconf
> 
>     <component-instance
>  
> class="org.apache.cocoon.components.modules.input.JXPathMetaModule" 
>              logger="core.modules.input.utils" name="jxpath">
> 		
>             <input-module name="chain"/>
> 
> 		<function name="java.lang.String" prefix="str"/>
> 
> 		<package name="java.util" prefix="util"/>
>     </component-instance>
> 
> in chain module is always string attribute "dn" ()
>     <component-instance 
>  
> class="org.apache.cocoon.components.modules.input.ChainMetaModule" 
>        logger="core.modules.input" 
>        name="chain">
>       <input-module name="request-param"/>
>       <input-module name="request-attr"/>
>       <input-module name="session-attr"/>
>       <input-module name="defaults"/>
> </component-instance>
> 
> so how can I access to length of the string in dn attribute ?
> the example str:length(dn) do not work

The output of the wrapped module is the new context object in JXPath 
speak. So it should be {jxpath:str.length(.)} (?)
Please see JXPath homepage for correct syntax.

	Chris.

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


Mime
View raw message