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

Storing calculated values in global variables ?

Subject: Storing calculated values in global variables ?
From: "Chitra Lalita Madhwacharyula" <iscp1059@xxxxxxxxxx>
Date: Tue, 12 Nov 2002 16:14:54 +0800
date calculated values
Hello,

I am a new user of XSLT and am not very good with it. Can anyone please
help me with this problem ? If I have the following 2 XML Documents

Doc1.xml
<?xml version="1.0"?>
<Testing>
	<Range>
		<From>500</From>
		<To>300</To>
		<From>300</From>
		<To>400</To>
		<From>600</From>
		<To>1000</To>
	</Range>
</Testing>

Doc2.xml
<?xml version="1.0"?>
<Testing>
	<Range>
		<From>100</From>
		<To>300</To>
		<From>200</From>
		<To>400</To>
		<From>700</From>
		<To>1000</To>
	</Range>
</Testing>

I can sort the elements from both the documents in ascending or
descending order and extract the maximum and minimum value elements
using a single stylesheet. But how do I perform mathematical operations
on the sorted elements ? For e.g if I want to add the first and the last
<From> element from the sorted list of <From> elements how can I do this
and store this value in a global variable so that it can be reused ? 

Thanx,
Chitra


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


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.