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

Reply via email to