[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

re: choose statement

Subject: re: choose statement
From: Kevin Byrne <Kevin.Byrne@xxxxxxxxx>
Date: Tue, 3 Oct 2000 09:43:11 +0100
xsl choose statement
Greetings,

I am using xsl to populate a page with stock quotes. However, when a stock
has a gain or a loss I want to apply css to alter the color of the offending
stock. I have done this for the element "change".How do I include such
formatting for any other elements that I need to change color.

Here's the choose statement so far, if it works:

//choose statement
<xsl:choose>
<xsl:when test="focus=&#60;'0.00'">
<span class="loss">
<xsl:value-of select="change"/> 
</span>
</xsl:when>
<xsl:when test="focus=&#62;'0.00'">
<span class="gain">
<xsl:value-of select="change"/> 
</span>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="change"/>
</xsl:otherwise>
</xsl:choose>

Thanks,
K.Byrne
 



***********************************************************************

Private, confidential and privileged.  This email and any attachments transmitted with it
are confidential and/or privileged.  They are intended for the sole use of the intended 
recipient. The content of this email and any file or attachment transmitted with it may
have been changed or altered without the consent of the author.  If you are not the 
intended recipient, please note that any review, dissemination, disclosure, alteration,
printing, circulation or transmission of this email and/or any file or attachment transmitted 
with it, is prohibited and may be unlawful.  If you have received this email or any attachment
transmitted with it in error, please notify postmaster@xxxxxxxxx

************************************************************************


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.