Community-Credit.com | NonProfitWays.com | SOAPitstop.com   Skin:   
      User: Not logged in 
Home
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Presentations
Featured Articles
Book Chapters
Training Courses
Events
NewsGroups
 
Discussions
Examples
Tutorials
Tools
Articles
Resources
Websites
 
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
Logout
 
About Me
My Blog
HeadGeek Articles
Talking Portfolio
Resume
Pictures
World Trip Pics

Reply: Help with converting XML into XML

Date Posted:9/15/2008 6:22 AM
Posted by:
Tamara WR

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,


Tamara.


 


 


 


 






Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”



Advertise on XMLPitstop

Advertise on XMLPitstop


EggHead Cafe
Web Servicee development
DotNetSlackers
Lexmark ink cartridges
optimum online sucks
halloween masks
premiere global
chicago web design
Alojamiento Web
Web Hosting
Geovision
Bvlgari sunglasses
Video Surveillance
Skype vs. sipcall

4,127 Total Members
13 members(last 30 days)
3 members(last 7 days)
0 members(today)

1,948 Total Discussions
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

47,487 Total Blog Posts
0 Blogs(last 30 days)
0 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

14,138 Total Resources
3 Resources(last 30 days)
2 Resources(last 7 days)
0 Resources(today)


 

David Silverlight's XMLPitstop.com| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139