I would like to use a parameter from the request to determine what xml-file to view. 
Without being sure, I think that the "parameter"-selector 
(org.apache.cocoon.selection.ParameterSelectorFactory) from the Cocoon SiteMap can be 
used for this. As a test I have written the following matcher:

   <map:match pattern="test/*">
        <map:select type="parameter">
                <map:parameter name="parameter-selector-test" value="XXXX"/>           
 
                <map:when test="condition1">
                        <map:generate 
src="cocoon:/vo-form/nameForPerson/Jan/default/1"/>
                </map:when>
                <map:otherwise>
                        <map:generate src="cocoon:/vo-form/nameForPerson/Jan/part/1"/>
                </map:otherwise>
        </map:select>
        <map:serialize type="xml"/>
   </map:match>

What I would like is to be able to pass a parameter from the request instead of 
value="XXXX". How do I accomplish this?


Best regards
KP

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to