cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Binkley, Peter" <Peter.Bink...@ualberta.ca>
Subject RE: Random selection
Date Thu, 30 Sep 2004 20:53:17 GMT
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
<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:gerritjankoekkoek@mac.com] 
Sent: Thursday, September 30, 2004 02:25 PM
To: users@cocoon.apache.org
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


Mime
View raw message