Jeroen Reijn napisaƂ(a):
> Hi Olivier,
>
> you can use the SessionAttribute input module to select the attribute and use 
> the parameter selector to see if the attribute has a value.
>
> http://cocoon.apache.org/2.1/userdocs/parameter-selector.html
>
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/SessionAttributeModule.html
>
> Kind regards,
>   
Isn't it that parameter-selector selects on _value_ of parameter but on
not existence? Non-existing session attr will have '' value AFAIR so it
could be used in "hacky" way:

<map:select type="parameter">
        <map:parameter name="parameter-selector-test" 
value="{session-attr:YOURATTR}"/>
      
        <!--YOURATTR does not exist or has null value or is just empty string 
-->
        <map:when test="">
          <!-- do something -->
        </map:when>
      
        <!-- YOURATTR exists -->
        <map:otherwise>
          <map:transform src="all_others.xsl"
        </map:otherwise>

</map:select>

-- 
Best regards
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to