Joerg Heinicke wrote:

On 15.05.2004 17:37, Jorg Heymans wrote:

AFAIK some of the XSLT functions work in the sitemap too, probably through JXPath. *If* translate() works it will look like:
value="{translate({1}, '_', ' ')"
Maybe it needs a namespace prefix for the correct input module.



Baffled again by cocoon's flexibility, how can anyone find out about this stuff? Is this documented?


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}}"/>

Interesting.

Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to