[xsl] Please Help!!!

Subject: [xsl] Please Help!!!
From: Tham Tinh <khautinh@xxxxxxxxx>
Date: Fri, 4 Apr 2003 14:41:20 -0800 (PST)
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?
XSL code:
<xsl:template match="AUParticipations">
	<p align="center">
		<table border="2" width="95%" bgcolor="<%=blue3%>"
cellpadding="5" cellspacing="0">
			 <tr>
				 <td colspan="10" align="center">
					 <b>Assistance Unit Participation</b>
				 </td>
			 </tr>

			 <tr>
				<td align="center" colspan="10">
						<table border="0" bgcolor="<%=olive%>"
cellpadding="3" cellspacing="3" class="Table">
						  <tr>
									<th>AU #</th>
									<th>Program</th>
									<th>Program Type</th>
									<th>Medical Cvrg Group</th>
									<th>AU Status</th>
									<th>Elig Begin</th>
									<th>Paid Thru</th>
									<th>Site</th>
									<th>Site Phone</th>
									<th>Grant Amount</th>
									<th>Money Amount</th>
						  </tr>
						<tr>
						</tr>
						<xsl:apply-templates />
					</table>
				</td>
			 </tr>
		</table>
	</p>
	<br />
</xsl:template>

<xsl:template match="AUParticipation">
	<tr>
		<xsl:attribute name="style">background-color:
<xsl:eval>fnIsOdd()</xsl:eval></xsl:attribute>
		<td align="center"  class="Cell"><xsl:value-of
select="au_num" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="Prog" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="ProgType" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="Med" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="sts_desc" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="elig_beg_dt" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="pd_thru_dt" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="site_desc" /></td>
		<td align="center"  class="Cell"><xsl:value-of
select="transf_desk_phone" /></td>
		<td align="center"  class="Cell">$<xsl:value-of
select="benefit_amt" /></td>
		<td align="center"  class="Cell">$<xsl:value-of
select="Income_amt" /></td>
	</tr>
</xsl:template>
******************************************************
XML out put:

  </AUParticipations>
	- <AUParticipation>
	  <au_num>12300</au_num> 
	  <Prog>something</Prog> 
	  <ProgType>DISABLED</ProgType> 
	  <Med>something</Med> 
	  <sts_desc>Active</sts_desc> 
	  <elig_beg_dt>12/1/1996</elig_beg_dt> 
	  <pd_thru_dt>---</pd_thru_dt> 
	  <site_desc>somethingr</site_desc> 
	 
<transf_desk_phone>(000)000-0000</transf_desk_phone> 
	  <benefit_amt>---</benefit_amt> 
	  <Income_amt>360</Income_amt> 
	  </AUParticipation>
	- <AUParticipation>
	  <au_num>111111</au_num> 
	  <Prog>something</Prog> 
	  <ProgType>something</ProgType> 
	  <Med>something</Med> 
	  <sts_desc>Closed</sts_desc> 
	  <elig_beg_dt>12/1/1996</elig_beg_dt> 
	  <pd_thru_dt>12/31/1999</pd_thru_dt> 
	  <site_desc>something</site_desc> 
	 
<transf_desk_phone>(000)000-0000</transf_desk_phone> 
	  <benefit_amt>---</benefit_amt> 
	  <Income_amt>360</Income_amt> 
	  </AUParticipation>
	- <AUParticipation>
	  <au_num>2312424</au_num> 
	  <Prog>something</Prog> 
	  <ProgType>PA FS</ProgType> 
	  <Med>---</Med> 
	  <sts_desc>Closed</sts_desc> 
	  <elig_beg_dt>12/1/1996</elig_beg_dt> 
	  <pd_thru_dt>12/31/1999</pd_thru_dt> 
	  <site_desc>something</site_desc> 
	 
<transf_desk_phone>(000)000-0000</transf_desk_phone> 
	  <benefit_amt>---</benefit_amt> 
	  <Income_amt>360</Income_amt> 
	  </AUParticipation>
  </AUParticipations>


=====
"It is essential to know that to be a happy person, a happy family, a happy society, it is very crucial to have a good heart, that is very crucial,"
Dalai Lama

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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


Current Thread