cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: xml-cocoon2/src/documentation/xdocs/faq faq-aggregators.xml
Date Mon, 03 Jun 2002 18:50:02 GMT
shannon     2002/06/03 11:50:02

  Added:       src/documentation/xdocs/faq faq-aggregators.xml
  new faq file for aggregators
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/documentation/xdocs/faq/faq-aggregators.xml
  Index: faq-aggregators.xml
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE faqs PUBLIC "-//APACHE//DTD FAQ V1.0//EN" "../dtd/faq-v10.dtd">
  <faqs title="Aggregator FAQs">
     What is an Aggregator?
  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.
  In the example below,the XML content of pipelines matching <code>book-*.xml</code>
and <code>body-*.xml</code> are aggregated, having a root element called site.
  <map:match pattern="*.html">
   <map:aggregate element="site">
    <map:part src="cocoon:/book-{1}.xml"/>
    <map:part src="cocoon:/body-{1}.xml"/>
       The aggregated XML content could look like this:
    <!-- content of book XML --> 
    <!-- content of body XML -->

In case of troubles, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message