cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinh...@apache.org>
Subject Re: [C3] map:select's value attribute
Date Sun, 22 Feb 2009 17:14:07 GMT
Grzegorz Kossakowski wrote:
> Hi again,
> 
> I'm wondering how map:select is intended to work. According sitemap's
> schema following construct is valid:
> 
> <map:select> <map:when equals="..."> .. </map:when> <map:otherwise>

> .. </map:otherwise> </map:select>
> 
> This will work because select will take request's URL as a test
> value. I'm not sure if this makes sense. At least I was rather
> surprised that map:select can omit test attribute.
> 
> Was this intentional or not?

>es it was. Match and select use the requestURI as default test
parameters. Alternative test values can be set by using the 'value'
attribute.

This implementation mostly covers Mark's proposal
(http://cocoon.markmail.org/message/wj4zpfcgxsmlcpp7) but explicitly
distinguishes between match and select.

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

Mime
View raw message