Subject: re: choose statement From: Kevin Byrne <Kevin.Byrne@xxxxxxxxx> Date: Tue, 3 Oct 2000 09:43:11 +0100 |
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@xxxxxxxxx ************************************************************************ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Two variables in XPATH expressi, Kay Michael | Thread | Re: Variable number of attributes, Jeni Tennison |
Two variables in XPATH expression., Deirdre O'Brien | Date | Re: Variable number of attributes, Jeni Tennison |
Month |