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

Re: text() word lists

Subject: Re: text() word lists
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Fri, 6 Feb 2004 21:30:12 +0100
mucho gratias
"James Cummings" <James.Cummings@xxxxxxxxxxxxxx> wrote in message
news:Pine.LNX.4.58.0402061738540.17676@xxxxxxxxxxxxxxxxxxxxxx
>
> Thanks to both Dimitre and David for the XSLT1 and XSLT2
> solutions.  I've fiddled with both to do a variety of
> orders and all seems to be smashingly wonderful.
>
> I haven't yet tested them on huge texts or anything, will
> be interesting to compare the speeds.  (Though maybe I'll
> only want to retrieve the first 30% of results in that
> case... there'll be lots of single uses at the bottom.)
> I'll see what other nifty things I can think of to do!
>
> Mucho gratias,
>
> -James

James,

To achieve best performance with the FXSL solution, make the following
changes to the "strSplit-to-Words.xsl" template:

1. Change the xsl:import instruction to:

   <xsl:import href="dvc-str-foldl.xsl"/>

2. Change this line:

       <xsl:call-template name="str-foldl">

 to this:

       <xsl:call-template name="dvc-str-foldl">


This changed solution is essentially the same but it will use the DVC
(Divide and Conquer) version of str-foldl, and this can process huge strings
without stack-overflow.


Cheers,

Dimitre Novatchev,
FXSL developer,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html





 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.