cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: logic in sitemap.xmap
Date Mon, 02 Jun 2003 16:46:33 GMT
Complex logic is intentionally excluded.  What version
are you using?  2.0 you are limited to Actions, Selectors
and Matchers.  In 2.1 you have the same, but check out
"flow" which allows more complex logic.

Geoff

At 12:21 PM 6/2/2003, you wrote:
>Hi all,
>
>Is possible to use complex logic in sitemap?
>How I know I can use this code:
>         <map:select type="request-attribute">
>           <map:parameter name="attribute-name"
>value="cocoon-action-run"/>
>           <map:when test="true">
>           ...
>for logic:
>   if (
>"true".equals(request.getAttribute("cocoon-action-run"))
>) {
>     ...
>
>so now I want more, how can I check for null:
>    if ( session.getAttribute("my-attribute") == null )
>{
>        ...
>
>What logics possible in sitemap?
>
>Any advice, tips, links, docs,
>Thanks a lot,
>Hill
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
>http://calendar.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message