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

string-length

Subject: string-length
From: "Ben Sorek" <bsorek@xxxxxxxxxxxxx>
Date: Sun, 2 Apr 2000 13:10:11 +0200
string-length
I am trying to determine set a variable according to the length of a string.

say i have 5 nodes

I want to select all nodes (in order) as long as the additive string length
is less then 915

ie:
node 1 = 300
node 2 = 200
node 3 = 300
node 4 = 300
node 5 = 100

i would select nodes 1, 2, 3(because if i add node 4 the total would be
1100, so i have to stick with the first three nodes)

My XML has a structure
<CATEGORY>
	<DATA>
		....
	</DATA>


	<DATA>
		....
	</DATA>


	<DATA>
		....
	</DATA>


	<DATA>
		....
	</DATA>


	<DATA>
		....
	</DATA>

</CATEGORY>


My XSL template is at match="CATEGORY"

ANy suggestions on an efficient solution?


 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.