Advertisement

05.07.2008 at 03:43PM PDT, ID: 23384549
[x]
Attachment Details

How do I change the attribute names?

Asked by meow00 in Extensible Stylesheet Language Transformation (XSLT)

Tags: xslt

Hi experts,

<Zoo  id = "001"   location = "LA"  state = "CA">
   <Animal> Cat </Animal>
   <Animal> Dog </Animal>
</Zoo>

-----------------------------
I want the new xml to be the following: (the location equals the original state value, and remove the state attribute)

<Zoo  id = "001"   location = "CA" >
   <Animal> Cat </Animal>
   <Animal> Dog </Animal>
</Zoo>

--------------------------------------
Can anyone please give me some helps? Thanks!Start Free Trial
[+][-]05.07.2008 at 05:34PM PDT, ID: 21521502

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Extensible Stylesheet Language Transformation (XSLT)
Tags: xslt
Sign Up Now!
Solution Provided By: steveberzins
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628