cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bobby Mitchell <bo...@niac.usra.edu>
Subject Need help with ParameterSelector
Date Thu, 08 May 2003 17:13:17 GMT
I'm using Cocoon-2.1-dev, RedHat-8, Sun j2sdk1.4.1_02.

I want to implement the following selector using 
test="starts-with({1},'test')

   <map:selectors default="parameter">
     <map:selector name="parameter" 
src="org.apache.cocoon.selection.ParameterSelector"
       logger="sitemap.selector.parameter"/>
   </map:selectors>


       <map:select type="parameter">
         <map:parameter name="parameter-selector-test" value="{1}"/>

         <map:when test="starts-with({1},'test')">
           <map:generate type="serverpages" src="{1}.xsp"/>
           <map:transform src="stylesheets/test2html.xsl"/>
           <map:serialize type="xml"/>
         </map:when>
       </map:select>


If I use test="test" it works, but test="starts-with({1},'test') does not work.
Will ParameterSelector use "starts-with" in the test?
If so, is the syntax correct?


-- 
Robert J. (Bobby) Mitchell
Systems Administrator
NASA Institute for Advanced Concepts
555A 14th St Atlanta, Ga. 30318
Phone: (404)347-9633 Fax: (404)347-9638




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


Mime
View raw message