cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject Re: Help with selector - very basic
Date Mon, 04 Oct 2004 16:11:08 GMT

On Oct 4, 2004, at 8:51 AM, Jonathan Linczak wrote:

> Hi all,
>
> First time using a selector (don't laugh!) and I wrote a simple  
> pipeline that changes based on the parameter matched:
>
>     <map:pipeline>
>       <map:match pattern="**/*/*/teamstats.html">
>         <map:select type="parameter">
>           <map:parameter name="parameter-selector-test" value="{2}"/>
>           <map:when test="menssports">
>             <map:read mime-type="text/html"  
> src="content/authoring/stats/m-{3}/teamstats.htm"/>
>           </map:when>
>           <map:when test="womenssports">
>             <map:read mime-type="text/html"  
> src="content/authoring/stats/w-{3}/teamstats.htm"/>
>           </map:when>
>         </map:select>
>       </map:match>
>     </map:pipeline>
>
> When I go to the page:  
> http://www.someplace.com:8080/lenya/athletics/authoring/menssports/ 
> football/teamstats.html
>
> I get the following error:
>
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.:  
> org.apache.cocoon.ProcessingException: Streaming of an internal  
> pipeline is not possible with a reader.

You might try using a generator+serializer instead of a reader.   
Replace the reader with a generator, and put the serializer right after  
the selector.

HTH,
mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message