Title: Message
This site has an example of using the java extensions of Xalan to generate a random number:
 
http://cafeconleche.org/books/xmljava/chapters/ch17s03.html
 
You could build that into a stylesheet easily enough, though it would take a little extension to get it to generate two quaranteed different random numbers.
 
Peter
 
-----Original Message-----
From: gerritjan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 02:25 PM
To: [EMAIL PROTECTED]
Subject: Random selection

Hello


Does anyone know how to select from a list of records a random set of records within Cocoon

<set>

<record>1</record>

<record>2</record>

<record>3</record>

<record>4</record>

<record>5</record>

</set>


If I would like two retrieve 2 records out of this set randomly (to surprise viewers); How?


Gerritjan Koekkoek

Reply via email to