Subject: RE: [xsl] Better include them in the XSLT 2.0 spec (Was: Re: [xsl] Time for an exslt for 2.0?) From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 13 May 2005 00:06:14 +0100 |
> Is there some other mechanism which would be used to, > for example, return a random number, other than a function? There are various ways of designing functions to generate a (pseudo-)random number sequence: (a) a function that returns a sequence of random numbers (rather than just one) (b) a function that takes one number as input and generates a new number from it Having a function with no arguments that returns a different number each time it's called is not a good design, because the optimizer is likely to move it out of the processing loop. (This is also a danger with node-creative functions, of course; but an optimizer can be expected to analyze the function body to determine whether a function is node-creative or not.) Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Better include them in th, Dimitre Novatchev | Thread | RE: [xsl] Better include them in th, Kevin Rodgers |
Re: [xsl] Better include them in th, Dimitre Novatchev | Date | RE: [xsl] How to select a node with, Michael Kay |
Month |