[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Is this possible in XSL?
Subject: RE: [xsl] Is this possible in XSL? From: "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx> Date: Tue, 2 Oct 2001 13:34:57 -0500 |
"item-id" is always single character in length. No there is not a specific number of <answer> for <question>, it may be any number. -----Original Message----- From: Mark Nahabedian [mailto:naha@xxxxxxxxxx] Sent: Tuesday, October 02, 2001 12:48 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: printing combinations (wa, Goetz Bock | Thread | RE: [xsl] Is this possible in XSL?, Robert Stuart |
RE: [xsl] XML to Word Document, kalpana rawat | Date | [xsl] Re: printing combinations (wa, Goetz Bock |
Month |
Keywords