Something along these lines might work:

   <map:match pattern="stuffA">
     <map:generate type="generator_1" src=""/>
     <map:serialize type="xml" />
   </map:match>

   <map:match pattern="stuffB">
     <map:generate type="generator_2" src=""/>
     <map:serialize type="xml" />
   </map:match>

   <map:match pattern="test">
     <map:aggregate element="whatever">
          <map:part element="from_generator_1" src="cocoon:/stuffA"/>
          <map:part element="from_generator_2" src="cocoon:/stuffB"/>
     </map:aggregate>
     <map:transform src="html/test.xsl"/>
     <map:serialize/>
   </map:match>


> -----Original Message-----
> From: Tom Klaasen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 12:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Join information from 2 generators?
> 
> 
> "Aggregate" is the word you should be looking for.
> Don't know by heart its syntax anymore (that damned memory of mine), but 
> I'm almost sure there are some examples in the default sitemap of cocoon.
> 
> hth,
> tomK
> 
> 
> Spectron International, Inc. wrote:
> 
> >I have made 2 generators and I need to join the data from both.Is it
> >possible to do something like this? If it is, what's the syntax, if it isn't
> >is there other solution?
> >
> ><map:match pattern="test">
> >  <map:whatever>
> >    <map:generate type="generator_1" src="">
> >    <map:generate type="generator_2" src="">
> >  </map:whatever>
> >  <map:transform src="html/test.xsl"/>
> >  <map:serialize/>
> ></map:match>
> >
> >Fawzib Rojas
> >
> >
> >---------------------------------------------------------------------
> >Please check that your question  has not already been answered in the
> >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to