Re: [xsl] Seed problem in FXSL randomizeList

Subject: Re: [xsl] Seed problem in FXSL randomizeList
From: Jesper Tverskov <jesper.tverskov@xxxxxxxxx>
Date: Tue, 6 Oct 2009 15:57:50 +0200
Let us say we have a list in XML of type "items/item", with all the
countries in the world, containing e.g. name of country and href to
the img with the flag. We could then generate a multiple choice test
with let us say as many questions as we have countries or items or
five for each country for that matter, and show the flag of a country
and five answer options, the true answer and four false options.

We could type all that junk in manually, but if the multiple choice
test is only in order to exercise your memory and for learning the
flags of the countries of the world in a nice way, then an
automatically generated multiple choice test could come in handy. And
we can generate it again and again with other combinations as we
please.

The same type of generated multiple choice test would work well as a
simple learning device for the Members of Congress (like learning
their names and what they look like), etc, etc.: for all sorts of list
information organized the right way.

Now I would love to be able to do the above with XSLT alone. For the
test application running the multiple choice tests, we also need a lot
of randomizing like choosing between the questions and presenting the
answer options in random order each time they are displayed. For that
part I use ASP.NET and C# and have it all working and I could also use
C# for the above probem. But for a pure transformation problem like
above I would, as an "XML" person, much prefer doing it with XSLT.

I have already fond a solution to the problems I have had with FXSL. I
could simply choose to use positions 2-5 instead of positions 1-4 for
the four false answers. But I hate the feeling that I need to
implement and bend FXSL to get it to work, and would much prefer that
it works out of the box.

Cheers,
Jesper

http://www.xmlplease.com

Current Thread