> From: Ugo Cei [mailto:[EMAIL PROTECTED]]
> 
> leo leonid wrote:
> 
> >> When I request "index?cocoon-view=content" I should get the result
of
> >> the aggregation before the transformation, right?
> >
> > no, you missed to add a label="content" to somepart or anotherpart.

Or map:aggregate itself.


> > /Leo
> 
> The label is associated with all of the generators in the
map:components
> section:

Labels are *not* assigned automagically, thus, Aggregator generator does
*not* have *any* label by default.

Use either:

    <map:aggregate element="site">
     <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
     <map:part src="cocoon:/body-{1}/{2}.xml" label="content"/>
    </map:aggregate>

Or:

    <map:aggregate element="site" label="content">
     <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
     <map:part src="cocoon:/body-{1}/{2}.xml"/>
    </map:aggregate>


Vadim



>    <map:generator label="content,data" ...>
> 
> And it works if I don't use aggregation. Do you mean that I must
> manually declare the label if using map:part ?
> 
>       Ugo
> 
> --
> Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
> P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
> Phone: +39.0382.525100 - 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