cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordore <>
Subject RegexpRequestParameterSelector unable to get working.
Date Tue, 06 May 2008 09:39:46 GMT


I want to use the 'RegexpRequestParameterSelector' as I need to apply a
regular expression to a request parameter to dictate how the pipeline

Unfortunately when I apply a pattern or use the given examples it seems to
ignore the pattern and goes to the otherwise.

  <map:selectors default="paramter">
     <map:selector name="request-param-regexp"
       <pattern name="empty">^$</pattern>
       <pattern name="number">^[0-9]+$</pattern>
       <pattern name="string">^.+$</pattern>
       <pattern name="groups">admin|manager</pattern>

<map:match pattern=”test”>
	<map:generate src=”content/group.xml” />
	<map:act type=”request”>
            	<map:parameter name=”parameters” value=”true” />
		<map:select type=” request-param-regexp”>
			<map:parameter name=”parameter-name” value=”{group}” />
			<map:when test=”groups”>
	<map:transform type=”xslt” src=”xslt/text.xslt”>
		<map:parameter name=”arg” value=”true” />
  	<map:transform type=”xslt” src=”xslt/text.xslt”>
		<map:parameter name=”arg” value=”false” />
<map:serialize type=”html” />

	arg = false

            arg = false

Could anyone help?

Matt. Beaumont

View this message in context:
Sent from the Cocoon - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message