Okay. I have this xml file looks like this:
<album_tracking>
<artist type="individual">
<artist_name>Daft Punk</artist_name>
<artist_country>United States</artist_country>
<engineer>Guillaume Le Braz</engineer>
<engineer>Alana Da Fonseca</engineer>
<engineer>Mick Guzauski</engineer>
<engineer>Phil Joly</engineer>
<engineer>Florian Lagatta</engineer>
<engineer>Daniel Lerner</engineer>
<album_gengre>Pop_Rock</album_gengre>
<album_rating>6</album_rating>
<comment>Grammy Winner for Year</comment>
</artist>
And I want to converting this using xslt. The attribute Type in artist element needs to come out as an element. However, I have another attribute named as type in the following xml (the file is long so I did not attach it). So what should I do to distinguish these two apart?
No comments:
Post a Comment