You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Spectron International, Inc." <sp...@coqui.net> on 2002/07/11 18:15:12 UTC

Join information from 2 generators?

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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Join information from 2 generators?

Posted by Robert Bourdeau <bo...@ciesin.columbia.edu>.
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:tom.klaasen@pandora.be]
> Sent: Thursday, July 11, 2002 12:31 PM
> To: cocoon-users@xml.apache.org
> 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:     <co...@xml.apache.org>
> >For additional commands, e-mail:   <co...@xml.apache.org>
> >
> >
> >
> >  
> >
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Join information from 2 generators?

Posted by Tom Klaasen <to...@pandora.be>.
"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:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>
>
>
>
>  
>




---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>