Re: [xsl] Seed problem in FXSL randomizeList

Subject: Re: [xsl] Seed problem in FXSL randomizeList
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 6 Oct 2009 09:49:58 -0700
How many questions are there per country?

How many answers are there per question?

What is the total number of countries?

Then, the next typical question in the usual sequence (OMG, how many
times have I been asking this... :) ), is:

Could you, please, provide a small XML source file and the wanted output?

Dimitre Novatchev

On Tue, Oct 6, 2009 at 6:57 AM, Jesper Tverskov
<jesper.tverskov@xxxxxxxxx> wrote:
> 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

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
You've achieved success in your field when you don't know whether what
you're doing is work or play
I enjoy the massacre of ads. This sentence will slaughter ads without
a messy bloodbath.

Current Thread