cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maksimov, Aleksey" <AlekseyMaksi...@spherion.com>
Subject RE: Use request parameter selection in pipeline
Date Wed, 09 Jan 2002 21:37:02 GMT
> Hi Cocoon-users,
> I have been wanting to use different xsl's based on the value in a get
> parameter of a uri.
> For e.g. ....test.xsp?xsl=first
> My pipeline is as follows:
> <map:match pattern = "*.xsp">
>    <map:generate type="serverpages" src = "{1}.xsp/>

Should be 

	<map:generate type="serverpages" src = "{1}.xsp"/>

>    <map:select type="request" name="xsl">

This won't work. When I tried to do that think it will not recognize "xsl"
as a parameter. Instead I described that parameter in <map:selectors>
section of sitemap.xmap:

<map:selector name="request"
src="org.apache.cocoon.selection.RequestSelector">
   <parameter-name>xsl</parameter-name>
</map:selector>

And in pipelines:

<map:select type="request"> (w/o name="xsl") Everything works fine.

>        <map:when test="first">
>               <map:transform src ="first.xsl/>

closing " on that line also. I don't know, was is just typo?

Regards,
Aleksey Maksimov
Consulting Software Engineer 
Spherion Corp.

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message