Subject: Re: [xsl] Please Help!!! From: Peter Flynn <peter@xxxxxxxxxxx> Date: 05 Apr 2003 00:35:37 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Please Help!!!, Tham Tinh | Thread | Re: [xsl] Please Help!!!, Tham Tinh |
Re: [xsl] Tag within tag, Peter Flynn | Date | Re: [xsl] Tag within tag, David B. Bitton |
Month |