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

Re: Re: HOWTO: convert flat list w/ level information

Subject: Re: Re: HOWTO: convert flat list w/ level information to a hierarchialone?
From: David Tolpin <dvd@xxxxxxxxxxxxxx>
Date: Wed, 3 Dec 2003 02:57:29 +0400 (AMT)
convert date to seconds
> 
> The following transformation achieves the same (level values are monotonous
> but not strictly consecutive, container/item info not used) and at the same
> time is twice shorter and considerably less complex.
> 
> It is just 33 lines (compared to 66 lines) and consists of just two
> templates one of which has one parameter and the other no parameters
> (compared to three templates one of which takes two parameters and another
> which takes four parameters):
> 

Dimitre,

in my code I was trying to get rid of exponential computation times, so popular
for XLST grouping problem, but often inadequate. My template processes 100 lines 
in 2 seconds, yours in 9 seconds. The same 100 lines repeated twice take 4 seconds 
with my template, and 106 seconds with yours. 

Of course, it depends on the problem to solve, but a couple of hundreds of entries 
in a hierarchical table of contents is not uncommon.

David 

 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.