The items in the page-envelope: namespace are defined in the pageEnvelope module (see [http://localhost:8080/lenya/docs-new/docs/components/pageenvelopemodule.html])

The items in the page-envelope: namespace are defined in the pageEnvelope module (see [[http://localhost:8080/lenya/docs-new/docs/components/pageenvelopemodule.html]])

The sitemap details given below may not be up-to-date, but the general concept still applies.

This is a draft of a walkthrough of how Lenya generates a page in response to a request. To do this I turned on the debug level of logging by changing the value of logging from ERROR to DEBUG in WEB-INF/logkit.xconf and tailed WEB-INF/logs/sitemap.log, grepping for 'DEBUG'.

I'm writing this up as much to learn Lenya as well as document it, so I welcome your comments, amplifications, and corrections.

After the ACL checks

It appears that we're back in the scope of the default publication sitemap as the next event is "Matcher 'wildcard' matched prepared pattern '**' at webapp/lenya/lenya/default/sitemap.xmap:93:35"{{{<map:match pattern="**">

And calls a named pipeline, lenyabody, to generate the rest of the page components.

{{{<!-- This is the pipeline that builds the page. It aggregates all the navigational elements (breadcrumb, tabs, menu) with the actual content of the document. --> <map:pipeline> <!-- /lenyabody/{publication-id}/{area}/{doctype}/{document-id} -->