cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [C2] Recusive Sitemap Calling
Date Tue, 20 Feb 2001 20:53:54 GMT
Berin Loritsch wrote:

If there is anything else needed for Content Aggregation that would make
all of your live's easier, let me know.  At this point, you guys can
rock on at a quick clip!

> 
> I have added some code that makes recursive sitemap calling possible.
> It consists of two phases:
> 
> 1) All serverpages are directly accessible via the Roles.SERVERPAGES
>    ComponentSelector.
> 
> 2) When the ProgramGenerator creates the Root Sitemap, it places the
>    sitemap via it's NormalizedName as well as the alias "sitemap".
> 
> In order to get a request for the sitemap, you do this:
> ----------------------------------------------------------------
> ComponentSelector serverpages = (ComponentSelector) manager.lookup(Roles.SERVERPAGES);
> 
> Sitemap sitemap = (Sitemap) serverpages.lookup("sitemap");
> 
> sitemap.process(....);
> -----------------------------------------------------------------
> You also have direct access to all SitemapComponents.  This makes
> aggregation easier as you no longer are forced to go through the
> sitemap.
> 
> To get a generator, use Roles.GENERATORS and select the one by name.
> To get a transformer, you do the same thing.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

Mime
View raw message