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

Re: Please Help!!!

Subject: Re: Please Help!!!
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: 05 Apr 2003 00:35:37 +0100
peter flynn disabled
On Fri, 2003-04-04 at 23:41, Tham Tinh wrote:
> I have the following codes (Sorry if it is too long to
> read :-())  I would like to change Money amout to 0 if
> ProgType is not DISABLED.  Can it be done in XSL code?

Try not to use such big indentation, it makes it very hard to read.

> XSL code:
> <xsl:template match="AUParticipations">
>  <p align="center">
>   <table border="2" width="95%" bgcolor="<%=blue3%>" cellpadding="5" cellspacing="0">

That doesn't look well-formed to me.

> 	 </tr>
>          <tr>
>          </tr>
>          <xsl:apply-templates />
>        </table>

I don't think you mean that. I think you mean

	</tr>
        <tr>
          <xsl:apply-templates />
        </tr>
      </table>

What you seem to need to do in the later template is to use <xsl:choose>
in the 11th column.

> <xsl:template match="AUParticipation">
...
    <xsl:text>$</xsl:text>
    <xsl:choose>
      <xsl:when test="Prog!='DISABLED'">
        <xsl:text>0</xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="Income_amt"/>
      <xsl:otherwise>
    </xsl:choose>
...
</xsl:template>

///Peter



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


Current Thread
  • Please Help!!!
    • Tham Tinh - Fri, 4 Apr 2003 17:37:09 -0500 (EST)
      • Peter Flynn - Fri, 4 Apr 2003 18:31:57 -0500 (EST) <=
        • Tham Tinh - Mon, 7 Apr 2003 11:42:05 -0400 (EDT)
      • <Possible follow-ups>
      • Avula, Raj - Fri, 4 Apr 2003 17:58:10 -0500 (EST)

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.