cocoon-docs mailing list archives

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

http://cocoon.zones.apache.org/daisy/legacydocs/724.html

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

Parts
=====

Content
-------
Mime type: text/xml
Size: 1434 bytes
Content:
<html>
<body>

<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;
 &lt;/map:aggregate&gt;
 ...
    </pre>

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

<pre>&lt;site&gt;
 &lt;menu&gt;
  &lt;!-- content of book XML --&gt; 
  ...
 &lt;/menu&gt;
 &lt;document&gt;
  &lt;!-- content of body XML --&gt;
  ...
 &lt;/document&gt;
&lt;/site&gt;
    </pre>

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

<p>Learn more about content aggregation by downloading the free chapter,
<a href="http://www.newriders.com/books/product.asp?product_id={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.
</p>

</body>
</html>

Collections
===========
The document belongs to the following collections: legacydocs

Mime
View raw message