Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 18th, 2005, 10:00 PM
øystein
Guest
 
Posts: n/a
Default forms, xslt and python

Hi!

I got an xml file that goes like this.

<question id=10 correct_answer=2>
<alternative>Answer 1</alternative>
<alternative>Answer 2</alternative>
<alternative>Answer 3</alternative>
<alternative>Answer 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
  #2  
Old July 18th, 2005, 10:05 PM
Uche Ogbuji
Guest
 
Posts: n/a
Default Re: forms, xslt and python

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 Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Use CSS to display XML -
http://www.ibm.com/developerworks/ed...-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/xm...x-think29.html
Manage XML collections with XAPI -
http://www-106.ibm.com/developerwork...ry/x-xapi.html
Default and error handling in XSLT lookup tables -
http://www.ibm.com/developerworks/xm...x-tiplook.html
Packaging XSLT lookup tables as EXSLT functions -
http://www.ibm.com/developerworks/xm...-tiplook2.html

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles