[jdom-interest] OT: random sorts

Paul Libbrecht paul at activemath.org
Thu Sep 8 03:41:51 PDT 2005


Le 8 sept. 05, à 06:23, Todd O'Bryan a écrit :

> Sorry to bother the list, but I've googled till I'm blue in the face.
>
> I want to use XSLT to take an XML document representing questions for 
> a multiple choice test and randomize both the questions and the 
> answers. From what I can tell, this is either (a) impossible, or (b) 
> not quite impossible, but might as well be.
>
> Surely this is doable in a way that won't make my head hurt. Right? 
> Maybe...

It's certainly not impossible!!

Something like what follows would help probably:

List l=elt.getChildren("question",qNamespace);
... randomize list (use your favorite)

paul



More information about the jdom-interest mailing list