| Subject: Re: conditional variable assignment From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 18 May 1999 18:31:32 +0100 (BST) | 
> I'm having to unlearn everything I take for granted in Perl 
(think (lisp Not perl@][##*
> "if x, then a=b"
probably better to do
a= if x then b else c
ie
 <xsl:variable name="tint">
    <xsl:choose>
          <xsl:when test="$color='red'">pink</xsl:when>
          <xsl:when test="$color='violet'">lavender</xsl:when>
   </xsl:choose>
  </xsl:variable>
David
   
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: conditional variable assignment, G. Ken Holman | Thread | Re: conditional variable assignment, Paul Prescod | 
| RE: XSL performance problem, Sebastien Sahuc | Date | Re: XSL performance problem, Oren Ben-Kiki | 
| Month |