You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tuan Luu <tu...@gmx.ch> on 2004/03/11 09:15:58 UTC

Parameter Selector Test Question

Hello 
I have a resulting xml output: 

<authentication>
   <users>
   <user>
      <name>username</name>
      <editor>abcd</editor>
   </user>
   </users>
</authentication>

Now I'd like to use the Parameter selector in the sitemap to give different
stylesheets depending on the <editor> value.
part of the sitemap: 
<map:match pattern="selectortesting">
        <map:generate src="form/form.xml"/>
        <map:transform src="form/form.xsl"/>
        <map:serialize type="html"/>
</map:match>
<map:match pattern="formauth">
        <map:generate type="serverpages" src="form/esql.xsp">
                <map:parameter name="lang" value="{1}"/>
                <map:parameter name="use-request-parameters" value="true"/>
                <map:parameter name="parameter_username"
value="{request-param:username}"/>
        </map:generate>
        <map:select type="parameter">
                <map:parameter name="parameter-selector-test"
value="{editor}"/>
                <map:when test="abcd">
                        <map:transform  src="form/formzwei.xsl"/>
                </map:when>
                <map:otherwise>
                        <map:transform  src="form/formdrei.xsl"/>
                </map:otherwise>
        </map:select>
        <map:serialize type="xml"/>
</map:match>

What is missing here?
thanks for any reply or solution. 

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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