• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help with xslt

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following xml input file:
<metadata>
<name>workPhoneNumber</name>
<value>000-000-0000</value>
<name>homePhoneNumber</name>
<value>111-111-1111</value>
....
</metadata>

and the xml output file:
<metadata>
<item name="workPhoneNumber">000-000-0000</item>
<item name="homePhoneNumber">111-111-1111</item>
....
</metadata>

Can someone help me writing the xslt that can do the job?

thanks.
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure. Your first step is to come up with the requirements. A simple English description of what the transformation works on and what it produces under what circumstances would be a good starting point. See what you can come up with.
 
reply
    Bookmark Topic Watch Topic
  • New Topic