cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Sutic" <>
Subject [C2][Patch][Vote] A Selector that tests on sitemap parameters
Date Wed, 09 May 2001 12:05:18 GMT

a week ago I submitted that the sitemap parameters should be made available
to selectors. The voting never happened, but I believe the idea has enough
merit that I now submit three patches for inclusion into Cocoon2.

The modified files are: : The factory class creating parameter
selectors. : The selector now takes a Parameter reference in addition to
earlier parameters.

sitemap.xsl : <parameter/> tags within <map:select/> are handled just as
they are for actions, etc. instead of being ignored.

No changes were necessary to the other selector factories.


  <map:selector name="parameter"


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


View raw message