cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maksimov, Aleksey" <>
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"

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?

Aleksey Maksimov
Consulting Software Engineer 
Spherion Corp.

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message