(this document is adapted from the message posted by stefanomazzocchi on the cocoon development mailing list)

Currently, people abuse the map:resource part of the sitemap to create pipeline fragments to call. This was introduced by the TreeProcessor implementation of the sitemap but map:resources were *not* designed to be pipeline fragments but entire pipelines.

It has been identified in several circumstances (but mostly dealing with blocks) that the need to use pipeline fragments is required.

I propose the creation of "virtual pipeline components" by aggregating two or more components into a virtual one. An example is

{{{ <map:components>

As you can see from the example, with virtual components, we can:

The virtual compoments can include any other sitemap component but:

and, obviously, the order is important.

VirtualComponents (last edited 2009-09-20 23:42:11 by localhost)