xsl-list
[Top] [All Lists]

Re: Re: Re: Re: Selecting a random node from source-tree

2002-09-26 13:44:22
Something necessary to note: ***One single*** number is never random.

Random by definition applies to ***distribution*** -- that is an
infinite sequence which (in this case) is uniformly distributed.

In case you're looking only for a single number, you can pick whatever
you need from your environment and it would do.

I am aware that I was implying that "you know what I mean". On other lists I
felt that a scientific view of math stuff was rather not welcome. I am new
to this list as of today.

As for the inability to use the "heavy" FXSL, well let me expose one
more myth about FXSL, this is only seemingly so. It's true the library
is rich and powerful. However, its dependency relations are quite
simple and break down into small sets of interdependent templates.

In the case of using random.xsl, only the following four stylesheet
modules are part of the total import hierarchy and will have to be
provided:

  - random.xsl

  - map.xsl

  - curry.xsl

  - iter.xsl

Using only the randNext template doesn't actually require any of the
above imports...

I get the idea -- Thanks! I'll see if I can use that in my stylesheet.


Martin Lormes


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



<Prev in Thread] Current Thread [Next in Thread>