You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Haul <ha...@informatik.tu-darmstadt.de> on 2004/01/04 16:08:47 UTC

Re: how to configure JXPathMetaModule?

joakim verona wrote:
> Hello,
> 
> I would like to URL encode in the sitemap, and I figured the 
> JXPathMetamodule would be useful.
> However, I cant figure out how to configure it.
> 
> The docs mention a "function" element that can be used to define java 
> classes to be used with jxpath:
> 
> <function name="java.net.URLDecoder" prefix="urlencode"/>
> 
> But where do I put this statement?

Wherever the module is declared or used and may have a nested 
configuration. If you are going to use it from sitemap, you need to add 
this to the declaration.

> Then I would like to use the new input module like this:
> 
> 
> <match select="test/*">
> <generate src="http://www.test.com/{urlencode:encode({1})}"

Nested substitution is not supported. But there is an action for this: 
InputModuleAction. Please see the javadocs.

	Chris.

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