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

RE: local extremums

Subject: RE: local extremums
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Tue, 18 Mar 2003 14:19:34 -0600
RE:  local extremums
> Evgenia,
> 
> It may be more helpful if you were to provide XSLT with your list below.
> Part of the difficulty you are having is deciding which nodes you wish to
> keep and which nodes to throw out.  Unfortunately, the english you have
> provided is not precise enough to explain which nodes you are 
> interested in.

Agreed.

> However, I would suggest
> that if you want to group them, you iterate over the list and add some zeros
> in front of your numbers.  For example, the first range element has a
> Cnt="0".  I would iterate over your list and make that number Cnt="000".
> And any number less than 100 I would add a single zero.  This will make it
> easier for the xsl <sort> element as it will group the numbers (0, 2345,
> 12, 342, 9)  in a strange order (0, 12, 2345, 342, 9). 

Actually, you don't need to do this.  Instead, use the attribute
   data-type="number"
in the <xsl:sort element>.  Then the data will be sorted numerically
(0, 9, 12, 342, 2345) instead of textually (0, 12, 2345, 342, 9).

Lars


 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.