[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Is this possible in XSL?

Subject: Is this possible in XSL?
From: Mark Nahabedian <naha@xxxxxxxxxx>
Date: Tue, 2 Oct 2001 13:48:29 -0400
 Is this possible in XSL?
Uslu, Cihan Y (MED) writes:
 > Hi;
 > Is it possible to get all the answers'  item-ids in a way that covers
 > all the possible correct answer combination. 
 > For example I have this multiple choice question in XML and the correct
 > answers are "A" "B" and "H". 
 > What I want to output is to get all the possible correct answer
 > combination like this: 
 > 			"ABH | AHB | BAH | BHA | HAB | HBA"
 > 
 > How can I do this in XSL?

How would you do it in another language?

Are the "item-id" attributes always a single character in length?

Is there some maximum number of <answer> elements for all <question>s?
I.e. can the script assume that no <question> will ever have more than
5 <answer>s?  If so, you can precompute all possible permutations and
just use the elements of the precomputed permutation as indexes into
the <answer> elements for a given <question>.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.