cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject [announce] Extended sitemap variable substitution syntax
Date Mon, 24 Jun 2002 20:51:53 GMT
Hi team,

The extended sitemap variable substitution syntax based on InputModules 
is available in HEAD.

Sitemap variables can now be prefixed by the name of an InputModule. 
This means for example that "{request:foo}" will evaluate to the value 
of the "foo" request parameter or that "{session:myAttr}" will evaluate 
to the value of the "myAttr" session attribute.

Unprefixed variables are sitemap variables as usual, but there's also a 
reserved "sitemap" prefix. This means that "{../1}" is equivalent to 
"{sitemap:../1}". This can be used when the name of a sitemap variable 
contains a colon, e.g. "{sitemap:the:name}"

For background info on this, see the proposal and vote at :

Tests weren't extensive but this seems to work well.


This new feature means that InputModules will be more widely used, and 
therefore I'd like to propose some changes in the names they have in the 
current cocoon.xconf to more meaningfull ones :
- "request-param" instead of "request" for request parameters,
- "request-header" instead of "header" for request headers,
- "request-attr" instead of "attribute" for request attributes,
- "session-attr" instead of "session" for session attributes.

Thoughts ?


Sylvain Wallez
 Anyware Technologies                  Apache Cocoon 

To unsubscribe, e-mail:
For additional commands, email:

View raw message