XSL transformation of child nodes
-
I have an xml similar to this : UserName.SWEUserName INPUT deactivate LOGO ................................... .................................. .......................... ......................... I need to transform it to the following: ....... ............ i.e all child nodes under the 'event' node get transformed to the attributes of the property node(node name as 'name' attribute and value as 'string_value'). Moreover , the number and name of child nodes under the different 'event' nodes can vary. How can we write a XSL template to convert all chiild nodes under 'event' (however much there may be) into the desired format.
-
I have an xml similar to this : UserName.SWEUserName INPUT deactivate LOGO ................................... .................................. .......................... ......................... I need to transform it to the following: ....... ............ i.e all child nodes under the 'event' node get transformed to the attributes of the property node(node name as 'name' attribute and value as 'string_value'). Moreover , the number and name of child nodes under the different 'event' nodes can vary. How can we write a XSL template to convert all chiild nodes under 'event' (however much there may be) into the desired format.
"We make a living by what we get, we make a life by what we give." --Winston Churchill