A Selector that matches a string in the parameters object passed to it.

<map:selector name="parameter" factory="org.apache.cocoon.selection.ParameterSelector"/>

   <map:select type="parameter">
      <map:parameter name="parameter-selector-test" value="{mySitemapParameter}"/>
      <map:when test="myParameterValue">
         <!-- executes iff {mySitemapParameter} == "myParameterValue" -->
         <map:transform src="stylesheets/page/uk.xsl"/>
         <map:transform src="stylesheets/page/us.xsl"/>

The purpose of this selector is to allow an action to set parameters and to be able to select between different pipeline configurations depending on those parameters. - from the ParameterSelector source comments

ParameterSelector (last edited 2009-09-20 23:39:48 by localhost)