mac7attack
Technical User
Hi,
I am trying to create a web page using an xml file and xstl. I would like to display a list of questions then when the user clicks on a question the answer appears below the question and clicks on the question again to hide the answer
Before Click
After Click on Why?
I know the xml above is not valid xml, it is just a snippet.
Thanks in advanced,
MAC
I am trying to create a web page using an xml file and xstl. I would like to display a list of questions then when the user clicks on a question the answer appears below the question and clicks on the question again to hide the answer
Code:
<Questions>
<question>
<ask>Why?</ask>
<answer>Cause I can</answer>
</question>
<question>
<ask>Where?</ask>
<answer>On a web page</answer>
</question>
</Questions>
Before Click
Code:
Why?
Where?
After Click on Why?
Code:
Why?
Cause I can
Where?
I know the xml above is not valid xml, it is just a snippet.
Thanks in advanced,
MAC