BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


Uncategorized
A closer look at XML Data Binding, including a product appraisal (Part 1/3)
Read Directory and Create XML File
XMLSapiens - Open Source CMS
70-291 Demo Exam Questions
70-291 Demo Exam Questions
Time Line Calculation - [ Frame level calculation in Visual Basic 6.0 ]
How to bind a nested xml to a repeater control with Container.DataItem?
How to bind a XML to a DataGrid?
How to bind a XML File to a DropDownList?
How to use '&' in a XML file?
xframe - xsddoc 0.8-beta released
VCalendar - an open source Web calendar
Mortgage rate trends in 2006 – to help you make the right moves.


 
 

<< System.XMLWCF, WS, SOAP >>


By John Workman
First Posted 01/24/2004
Times viewed 125

Sum(round(.))


This post contains attachments
v20040123235748.zip 

Summary This xslt template will round attribute values before summing them. I know this sounds like the wrong thing to do, but it was required to insure that the credits and debits balanced when displaying general ledger information.

My original code used round(sum(@value)*100). This seems like the correct way to do it, but when displaying gl information, the accounts did not balance. To resolve this, I originally thought I could just reverse the functions, sum(round(@value*100)). I quickly learned this did not work, and I came up with the following:

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< System.XMLWCF, WS, SOAP >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML