Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2017, 10:52 AM
Authorized User
 
Join Date: Feb 2017
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default xslt sum

Hi,

<cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>1</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">2.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>2</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">3.00</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>1</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">4.00</cbc:Amount>
</cac:AllowanceCharge>
<cac:AllowanceCharge>
<cbc:SequenceNumeric>2</cbc:SequenceNumeric>
<cbc:Amount currencyID="TRY">5.00</cbc:Amount>
</cac:AllowanceCharge>
</cac:InvoiceLine>

xslt version 2.0

i want
if "SequenceNumeric=1" sum(cbc:Amount)
if "SequenceNumeric=2" sum(cbc:Amount)

how make this formul.

Thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT Sum function John Moss XSLT 18 June 19th, 2014 02:29 AM
XSLT conditional sum calculation lxken XSLT 2 August 3rd, 2007 10:37 PM
Help: Running Sum (or Cumulative Sum) timdasa VB Databases Basics 1 August 22nd, 2006 03:12 PM
Sum of random numbers in a table with XSLT Tschuri XSLT 0 May 8th, 2005 04:14 AM
sum ibelta Access 2 February 15th, 2005 08:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.