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! -- Matteo Di Giovinazzo [EMAIL PROTECTED] illo ha scritto: > Hello All, > I hava a question for sitemap > how can i write a sitmap: > if i request http://site/test.xml > it will transform by default.xsl > if i request http://site/test.xml?sytle=test.xsl > it will transform by test.xsl > > Thanks > > > --------------------------------------------------------------------- > 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]> > > --------------------------------------------------------------------- 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]>