Hello,
I am quite new with XSLT and I need to convert this xml:
<?xml version="1.0" standalone="yes"?>
<assesmentItem>
<choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single">
<prompt>answer1</prompt>
<simplechoice0 >response0</simplechoice0>
<simplechoice1 >response1</simplechoice1>
<simplechoice2>response2</simplechoice2>
</choiceInteraction>
</assesmentItem>
into this one:
<?xml version="1.0" standalone="yes"?>
<assesmentItem>
<choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single">
<prompt>answer1</prompt>
<simplechoice identifier="choiceA">response1</simplechoice>
<simplechoice identifier="choiceB">response2</simplechoice>
<simplechoice identifier="choiceC">response3</simplechoice>
</choiceInteraction>
</assesmentItem>
Where identifier choiceA would be added for the element simplechoice0 and so on with the others. I have to do the conversion and then the inversion but that one I already have it tough my problem is to do this conversion of attributes and elements.
Thanks so much for your help