cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Re: [C3] map:select's value attribute
Date Mon, 23 Feb 2009 12:17:32 GMT
Reinhard Pötz pisze:
> 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.

I see. This makes sense but coming with C2.x background one will probably find default for
<map:select> quite
surprising. Or is it only me?

-- 
Best regards,
Grzegorz Kossakowski

Mime
View raw message