[Home] [By Thread] [By Date] [Recent Entries]
Brent,
The only hard part of what you're describing is the "randomly" part. XSLT by itself provides no random or pseudo-random number generation. You can get around this, or through it, by: * calling out to your environment, e.g. with an extension function, to get a random number * passing in a random or virtually-random number as a parameter, and using that * using FXSL, which provides support for generating pseudo-random numbers (this requires invoking FXSL libraries) * other possibilities I may be neglecting Which of these is best will depend on externals, such as which processor you're using, whether an extension function or (say) FXSL is more feasible for you, and so forth. Lick that problem and the rest is straightforward, as XSLT can handle the weighting part of it (providing, of course, the weights are available as source data). For FXSL on this, see http://fxsl.sourceforge.net/articles/Random/Casting%20the%20Dice%20with%20FXSL-htm.htm. Cheers, Wendell At 02:34 PM 1/10/2008, you wrote: Hi, ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|

Cart



