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

Re: Multiple Values/Arrays in XSL?

Subject: Re: Multiple Values/Arrays in XSL?
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Tue, 13 Aug 2002 09:34:45 +0000
joining two arrays in xslt
Balaji,
Its looks that it is possible as long as the logic you are applying to check answers is clear. could you please let us know what you mean by
"If x in (R1, R2, R3, R5) and y = (R6) "
Thanks
Vasu


From: "Balaji Rajan" <basounda@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  Multiple Values/Arrays in XSL?
Date: Mon, 12 Aug 2002 15:06:14 -0700

I've a simple survey questionaire (in XML), in which each question has
a few answer choices (I convert this XML to a HTML form):

Questions.xml:
<Questions>
   <Question_1>
      <Choice>R1</Choice>
      <Choice>R2</Choice>
      <Choice>R3</Choice>
      <Choice>R4</Choice>
  </Question_1>
   <Question_2>
      <Choice>R1</Choice>
      <Choice>R2</Choice>
      <Choice>R3</Choice>
      <Choice>R6</Choice>
  </Question_2>
</Questions>

An user can select one or more answers
for each question. I convert the answers to an XML format, as
shown below:

answers.xml:
<Answers>
   <Question_1>
      <Response>R1</Response>
      <Response>R2</Response>
  </Question_1>
   <Question_2>
      <Response>R3</Response>
      <Response>R6</Response>
  </Question_2>
</Answers>

I would like to have two variables, say x and y, in XSLT,
that would hold responses of Question 1 and 2.

In my XSL, I would like to code rules like:
If x in (R1, R2, R3, R5) and y = (R6) then
   <BR>Display some text back to the user

Can we do this in XSL?

Would greatly appreciate any help.

Thanks,
Balaji


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




_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



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.