ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
RE: [xsl] Re: Re: Re: Unbounded element grouping/concatenation
by Gupta, Raman K [CI] other posts by this author
Dec 11 2003 8:46PM messages near this date
RE: [xsl] fun with fo tab formatting | RE: [xsl] Different templates for same set of nodes
>  The recursive algorithm works very well for me with 
>  XalanJ2.4.1. It is also
>  much faster than the variant with generate-id().
>  
>  I tested it with a record (type="normal"), which has 200 
>  following siblings
>  record (type="continuation").

True, but when you raise the number of continuation records,
it will eventually fail (for me, somewhere between 1000 and 1200
records, but this may vary somewhat depending on your java 
environment and stack memory. I need to support at least four
or five thousand.

>  With this source xml the recursive transformationtakes 781 ms 
>  to run. The
>  transformation with generate-id() takes 18687 ms.

Yes, the recursion is very much faster... that is why I wished
Xalan did tail recursion optimization. If there is no other
option, I will use the generate-id() method. Also note that
the generate-id() exhibits O(n^2) behavior, while the recursive
method should exhibit O(n). That was why I am still hoping 
there is a way to do it recursively (for a significant number
of continuation records).

Cheers,
Raman Gupta

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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved