xsl-list
[Top] [All Lists]

Re: [xsl] Random selection

2008-11-30 16:07:59
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.

See 
http://www.nesterovsky-bros.com/weblog/2008/11/22/GeneratorFunctionInXslt20.
aspx

--
Vladimir Nesterovsky
http://www.nesterovsky-bros.com

-------- Original Message --------
From: "sudheshna iyer" <sudheshnaiyer(_at_)yahoo(_dot_)com>
Sent: Sunday, November 30, 2008 5:40 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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(_at_)yahoo(_dot_)com> 
wrote:

From: sudheshna iyer <sudheshnaiyer(_at_)yahoo(_dot_)com>
Subject: [xsl] Random selection
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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.


      

--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~-- 




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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