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

RE: RE: Setting values for variable

Subject: RE: RE: Setting values for variable
From: "john lee" <excel_man@xxxxxxxxxxx>
Date: Fri, 10 Sep 2004 15:47:02 +0000
RE: RE:  Setting values for variable
Thanks for all the replies.
This is my situation:

<Trade>
<Record>
<Account>R</Account>
<Payment>10000</Payment>
<Balance>50000</Balance>
</Record>
<Record>
<Account>R</Account>
<Balance>40000</Balance>
</Record>
<Record>
<Account>I</Account>
<Payment>5000</Payment>
<Balance>50000</Balance>
</Record>
<Record>
<Account>I</Account>
<Balance>50000</Balance>
</Record>
</Trade>

I need to run the total based on the account Type. If there is <Payment> Tag coming back, I'll calculate the total based on the payment, but if there isnt, I will substitute the amount with 2% of the value in the <Balance>. So I need to go into all the Record, look to see if there is Payment tag coming back. If yes, use it. If no, use 2% of the Balance value.
Anybody can help me with this problem ?


Thanks

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus


Current Thread

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.