cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conal Tuohy <con...@paradise.net.nz>
Subject RE: Random selection
Date Thu, 30 Sep 2004 21:06:08 GMT
You can use the "Random" InputModule to create a random number and then pass
it to a stylesheet as a parameter.
http://wiki.apache.org/cocoon/InputModules#head-d136caf377577c2d65a16f97af67
89367ac7a7dc

-----Original Message-----
From: gerritjan
Sent: Friday, 1 October 2004 08:25
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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message