On Wed, 2011-04-27 at 09:41 +0100, Robin Taylor wrote:
> Hi Thorsten,
> 
> Thanks again and apologies for drip-feeding the questions.
> 
> In the code I'm looking at it appears the second pipeline has an empty
> map:generate ie. <map:generate/>. I assume this results in the second
> pipeline using the output from the first pipeline.

no, a  <map:generate/> means cocoon uses the default generator
configured for this sitemap. 

If is does not uses a src is most likely a "special" generator such as
e.g.  http://cocoon.apache.org/2.1/userdocs/request-generator.html

Using that as an example:
<map:generators default="request">
 <!-- This will turn on attribute generation on by default -->
 <map:generator name="request" 
src="org.apache.cocoon.generation.RequestGenerator"> 
    <map:parameter name="generate-attributes" value="true"/>
 </map:generator>
</map:generators>
...
<!-- This will turn on attribute generation for this invocation only.
-->
<map:match pattern="request">
  <map:generate/>
  <map:serialize/>      
</map:match>

As you see the <map:generate/> would here generate a xml representation
of the request and not use a former match/pipeline as input.

salu2
-- 
Thorsten Scherler <thorsten.at.apache.org>
codeBusters S.L. - web based systems
<consulting, training and solutions>
http://www.codebusters.es/


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

Reply via email to