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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to