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

Re: Random selection

Subject: Re: Random selection
From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Nov 2008 13:06:38 -0800
Re:  Random selection
You may model a random number generator using a random seed e.g. a value 
derived from current time stamp, 
and an xlst generator function.


Vladimir Nesterovsky

-------- Original Message --------
> From: "sudheshna iyer" <sudheshnaiyer@xxxxxxxxx>
> Sent: Sunday, November 30, 2008 5:40 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Random selection
> Here is the more clear explanation of what I am looking for:
> I need to select an image from pool of images randomly and produce <img 
src> element of html.
> This xsl should read the image tags from xml and based on the number of 
image tag nodes in the xml, it
> should display random image by producing <img src> element of html.
> Thank you for your help.
> --- On Sun, 11/30/08, sudheshna iyer <sudheshnaiyer@xxxxxxxxx> wrote:
> > From: sudheshna iyer <sudheshnaiyer@xxxxxxxxx>
> > Subject:  Random selection
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Date: Sunday, November 30, 2008, 9:48 AM
> > I need to select an image from pool of images randomly and
> > produce <img src> element of html.
> > 
> > How can achieve this? Can I get some code help?
> > 
> > Thank you in advance for your help.

Current Thread


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.
First Name
Last Name
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.