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

Re: xsl:for-each evaluator?

Subject: Re: xsl:for-each evaluator?
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Wed, 11 Jun 2003 21:25:38 +0200
xs for each
If you have:

<xsl:for-each select="$someExpression">
. . .
</xsl:for-each>

Then the number of times the body of the xs:for-each element will be
evaluated is:

count($someExpression)


The speed of finding count($someExpression) should be proportional to the
length of $someExpression.


In case you were asking about the time it would take to evaluate the
xsl:for-each, the answer is that this in general is impossible to predict -- 
there is a theorem in the theory of Algorithms (about universal functions, I
think), which states that in general it is impossible if a computation is
going to terminate.



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL



"Corey Wilson" <corey@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:000501c33046$7cb86890$7501a8c0@xxxxxxxx
> Does anyone know of a program that will evaluate an xsl:for-each loop to
> tell the number of computations the loop is doing?  Or the speed of the
> algorithm (ie O(n log n) ...).
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>




 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.