|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Calculating Value in XSL
I have the XML data like this :
- <REPORT> - <ANSWERSUMMARYLIST> - <ANSWERSUMMARY> - <ANSWERLIST> <TOTAL>2</TOTAL> <CHOICE>A</CHOICE> </ANSWERLIST> - <ANSWERLIST> <TOTAL>2</TOTAL> <CHOICE>B</CHOICE> </ANSWERLIST> - <ANSWERLIST> <TOTAL>2</TOTAL> <CHOICE>C</CHOICE> </ANSWERLIST> <QUESTIONID>1</QUESTIONID> </ANSWERSUMMARY> - <ANSWERSUMMARY> - <ANSWERLIST> <TOTAL>2</TOTAL> <CHOICE>A</CHOICE> </ANSWERLIST> - <ANSWERLIST> <TOTAL>3</TOTAL> <CHOICE>B</CHOICE> </ANSWERLIST> - <ANSWERLIST> <TOTAL>1</TOTAL> <CHOICE>D</CHOICE> </ANSWERLIST> <QUESTIONID>2</QUESTIONID> </ANSWERSUMMARY> and go on until <QUESTIONID>15</QUESTIONID> How to calculate in XSL how many people who answer A for QUESTIONID=1, QUESTIONID=6 and QUESTIONID=11 ? How to calculate in XSL how many people who answer B for QUESTIONID=1, QUESTIONID=6 and QUESTIONID=11 ? How to calculate in XSL how many people who answer C for QUESTIONID=1, QUESTIONID=6 and QUESTIONID=11 ? How to calculate in XSL how many people who answer A for QUESTIONID=2, QUESTIONID=7 and QUESTIONID=12 ? How to calculate in XSL how many people who answer B for QUESTIONID=2, QUESTIONID=7 and QUESTIONID=12 ? How to calculate in XSL how many people who answer C for QUESTIONID=2, QUESTIONID=7 and QUESTIONID=12 ? Thanks In Advanced for your Response YUAN |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Calculating Value in XSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|