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/[email protected]/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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>