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

RE: Please Help!!!

Subject: RE: Please Help!!!
From: "Avula, Raj" <ravula@xxxxxxxxxxx>
Date: Fri, 4 Apr 2003 15:01:49 -0800
cell text 000 000 0000
you should do Something like this
		<xsl:choose>
			<xsl:when test="ProgType!='DISABLED'">
				<xsl:text>0</xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="au_num" />
			</xsl:otherwise>
		</xsl:choose>


Goodluck


-----Original Message-----
From: Tham Tinh [mailto:khautinh@xxxxxxxxx]
Sent: Friday, April 04, 2003 2:41 PM
To: XSL List
Subject:  Please Help!!!


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



 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)
      • <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.