cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: [HELP] How Can I do ?
Date Tue, 09 Jul 2002 20:42:59 GMT
I think, that's not the best way. Why not doing it in the same way as a 
few hours ago posted: 
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg15068.html.

Regards,

Joerg

Matteo Di Giovinazzo wrote:
> use the selector: org.apache.cocoon.selection.RequestParameterSelector
> 
> This should works:
> 
> <map:pipeline>
>   <map:match pattern="/test.xml">
>     <map:generate src="{1}"/>
> 
>     <map:select type="request-parameter">
>       <map:parameter name="parameter-name" value="style"/>
> 
>       <map:when test="test.xsl">
>         <map:transform src="stylesheets/test.xsl"/>
>       </map:when>
> 
>       <map:otherwise>
>         <map:transform src="stylesheets/default.xsl"/>
>       </map:otherwise>
> 
>     </map:select>
> 
>     <map:serialize/>
> 
>   </map:match>
> </map:pipeline>
> 
> CIAO!


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

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