cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Holz <h...@fiz-chemie.de>
Subject Re: How to check request parameter exist (in sitemap)?
Date Fri, 23 Apr 2004 11:43:33 GMT
Mariusz Wójcik <wojcikm@okno.pw.edu.pl> writes:

> Hi
> 
> I'm using request parameter selector to maka a choice of correct xsl
> tranformation.
> This pipeline works correctly, but additionaly I'd like to check if the
> request parameter exists.
>  How can I do it? (I'd like to do the same transform when parameter doesn't
> exist, and is equal "0")
> 
> <map:pipeline>
>       <map:match pattern="dir">
>         .........
>         <map:select type="request-parameter">
>           <map:parameter name="parameter-name" value="id"/>
 
         <map:when test="">
              ???????? transformation_when_parameter_not_exists ?????????
            </map:transform>
         </map:when>

Matching for the empty string should almost work. Except that 
somebody may pass a empty string as a request parameter value.





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


Mime
View raw message