Re: forms, xslt and python

2005-02-04 Thread Uche Ogbuji
Firstly, that isn't an XML file.  You're missing quotes around
attribute values.

Secondly, your question is very unclear.  Are you looking for an XSLT
way to correlate the correct_answer attribute to the alternative
element in corresponding order?  Are you looking for a Python means to
do this?


--
Uche OgbujiFourthought, Inc.
http://uche.ogbuji.nethttp://4Suite.orghttp://fourthought.com
Use CSS to display XML -
http://www.ibm.com/developerworks/edu/x-dw-x-xmlcss-i.html
Introducing the Amara XML Toolkit -
http://www.xml.com/pub/a/2005/01/19/amara.html
Be humble, not imperial (in design) -
http://www.adtmag.com/article.asp?id=10286Querying WordNet as XML -
http://www.ibm.com/developerworks/xml/library/x-think29.html
Manage XML collections with XAPI -
http://www-106.ibm.com/developerworks/xml/library/x-xapi.html
Default and error handling in XSLT lookup tables -
http://www.ibm.com/developerworks/xml/library/x-tiplook.html
Packaging XSLT lookup tables as EXSLT functions -
http://www.ibm.com/developerworks/xml/library/x-tiplook2.html

-- 
http://mail.python.org/mailman/listinfo/python-list


forms, xslt and python

2005-02-02 Thread øystein
Hi!
I got an xml file that goes like this.

Answer 1
Answer 2
Answer 3
Answer 4

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
--
http://mail.python.org/mailman/listinfo/python-list