Hi Aleksey,

If I were to do what you suggest. How would the pipeline know which request
parameter it is accessing, since in my different pipelines I may have
different parameter names to select?

Raju



                                                                                       
           
                    "Maksimov, Aleksey"                                                
           
                    <AlekseyMaksimov@sph        To:     [EMAIL PROTECTED]              
           
                    erion.com>                  cc:                                    
           
                                                Subject:     RE: Use request parameter 
selection  
                    01/10/02 03:07 AM           in pipeline                            
           
                    Please respond to                                                  
           
                    cocoon-users                                                       
           
                                                                                       
           
                                                                                       
           




> 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]>






---------------------------------------------------------------------
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