Hi!
I got an xml file that goes like this.
<question id=10 correct_answer= 2>
<alternative>An swer 1</alternative>
<alternative>An swer 2</alternative>
<alternative>An swer 3</alternative>
<alternative>An swer 4</alternative>
</question>
I've made an xslt transformation and put the alternatives into radio
buttons (html form) so the user can choose the correct answer by
I am able to list all the questions and the id's via via python and return
them to the webpage. Put how can I get the value from the alternative
element? How can I verify that the user have answered correct?
Regards
Frengky
I got an xml file that goes like this.
<question id=10 correct_answer= 2>
<alternative>An swer 1</alternative>
<alternative>An swer 2</alternative>
<alternative>An swer 3</alternative>
<alternative>An swer 4</alternative>
</question>
I've made an xslt transformation and put the alternatives into radio
buttons (html form) so the user can choose the correct answer by
I am able to list all the questions and the id's via via python and return
them to the webpage. Put how can I get the value from the alternative
element? How can I verify that the user have answered correct?
Regards
Frengky
Comment