This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
re: choose statement
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: re: choose statement
- From: Kevin Byrne <Kevin dot Byrne at ebeon dot com>
- Date: Tue, 3 Oct 2000 09:43:11 +0100
- Reply-To: xsl-list at mulberrytech dot com
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=<'0.00'">
<span class="loss">
<xsl:value-of select="change"/>
</span>
</xsl:when>
<xsl:when test="focus=>'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@ebeon.com
************************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list