-
I have an xml similar to this :
<?xml version="1.0" encoding="UTF-8"?>
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.
-
Hi,
It's just a matter of writing the right xslt stylesheet. Google for some examples, read the spec or hire a decent programmer ;-)
You could use the trailing stylesheet.
Cheers,
Ivor
<?xml version="1.0" encoding="UTF-8"?>