cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S.Ramaswamy" <srsw...@giasdl01.vsnl.net.in>
Subject Re: Help with "starts-with(String, String)"
Date Wed, 08 Dec 1999 04:48:35 GMT
Mario Lim wrote:
> 
> Hello there,
>         I'm trying to use the <xsl:choose> tag and I need to compare a string,
but
> unfortunately I couldn't find any string comparison function.  I decided to
> use "start-with" to test an attribute but It is not comparing
> correctly.  The code looks like:
>           <xsl:choose>
>             <xsl:when test='starts-with({@notify}, "Y")'>
  
  simply use ---------------------------->@notify without any flower
brackets if you are already in the   element containing this attribute.
{ ... } needs to be used when you want to copy the literal result 
  instead of treating this as an attribute.


>               <input type="checkbox" name="notify" value="Y" checked/>
>             </xsl:when>
>             <xsl:otherwise>
>               <input type="checkbox" name="notify" value="Y"/>
>             </xsl:otherwise>
>           </xsl:choose>
> 
> Where {@notify} is a valid element atribute.  What am I doing wrong???
> 
> ----------------------------------------------------------------------
> |Mario Lim                                                           |
> |enCommerce Inc.                  2901 Patrick Henry Drive Suite 100 |
> |Software Engineer                Santa Clara, CA. 95054             |
> |mlim@encommerce.com              Tel: 408.222.7902                  |
> |http://www.encommerce.com        Tel: 800.318.6010  X7902           |
> |                                 Fax: 408.733.7867                  |
> |--------------------------------------------------------------------|
> |"It is possible to commit no mistakes and still lose.               |
> | That is not a weakness; that is life."                             |
> |                                                                    |
> |                                     -- Picard, "Peak Performance"  |
> ----------------------------------------------------------------------

-- 
==--==--==--==--==--==--==--==--==--==--==--==--==--==
S.Ramaswamy
Matrix Infotech Syndicate
D-7, Poorti, Vikaspuri, New Delhi, 110018, India
PHONE:    +91-11-5610050,   FAX: +91-11-5535103  
WEB         http://MatrixInfotech.HyperMart.Net
==--==--==--==--==--==--==--==--==--==--==--==--==--==



Mime
View raw message