On 16.05.2004 17:09, Upayavira wrote:
http://cocoon.apache.org/2.1/userdocs/concepts/modules.html
Some of the input modules are JXPath-enabled, so you can use XPath expressions to access values (see Input Modules sample for details). The following example demonstrates the use of XPath function with system-property module.
<map:parameter name="users-home-base" value="{system-property:substring-before(user.home, user.name)}"/>
--------------------------------------------------------------------
This is a hint for me that the above translate *might* work.
So, what this means is that we need a pure jxpath input module, to work with the nested input module support in 2.1.5. Maybe some configuration for the jxpath meta module. So we could do:
<map:parameter name="foo" value="{jxpath:substring-before({1},{2}}"/>
Sorry, but I don't see what you are aiming for. He wrote it works already. The only reason for changing something about it I see is the strange syntax
"{system-property:substring-before(user.home, user.name)}"
IMO it should besomething like
"{jxpath:substring-before({system-property:user.home}, {system-property:user.name})}"
Though this is longer, it is much more obvious what happens. Maybe it's the same what you indirectly suggest?
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
