cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Created: Aggregator FAQs
Date Thu, 22 Sep 2005 14:25:37 GMT
A new document has been created.

Document ID: 724
Branch: main
Language: default
Name: Aggregator FAQs
Document Type: Document
Created: 9/22/05 2:25:26 PM
Creator (owner): Helma van der Linden
State: publish


Mime type: text/xml
Size: 1434 bytes

<h2>What is an Aggregator?</h2>

<p>An aggregator produces XML content. It is composed of one or more parts, each
of which defined by an XML source. During pipeline processing, all parts of an
aggregator are merged. The name of the parent element which contains the merged
XML content from each part is defined by the value of the map:aggregate's
attribute called element.</p>

<p>In the example below,the XML content of pipelines matching
<tt>book-*.xml</tt> and <tt>body-*.xml</tt> are aggregated, having
a root
element called site.</p>

<pre>&lt;map:match pattern="*.html"&gt;
 &lt;map:aggregate element="site"&gt;
  &lt;map:part src="cocoon:/book-{1}.xml"/&gt;
  &lt;map:part src="cocoon:/body-{1}.xml"/&gt;

<p>The aggregated XML content could look like this:</p>

  &lt;!-- content of book XML --&gt; 
  &lt;!-- content of body XML --&gt;

<h2>Where can I learn more about content aggregation?</h2>

<p>Learn more about content aggregation by downloading the free chapter,
<a href="{C3C05052-BE3B-4E06-A60A-13FB40AF58F6}">A
User's Look at the Cocoon architecture,</a> from Langham and Ziegeler's
<em>Cocoon: Building XML Applications</em> available at the New Riders web site.


The document belongs to the following collections: legacydocs

View raw message