I
icedgar
I have just started working with XSL to transform XSL to XLM docs. I
am sure for most of you this is pretty easy and I know I am missing
something small. Here is a sample of my XML below:
<CD>
<key>Track ID</key>
<integer>37</integer>
<key>Name</key>
<string>Elevation</string>
<key>Artist</key>
<string>U2</string>
<key>Composer</key>
<string>Bono</string>
</CD>
I want to trasnform this into:
<CD
Track ID=37
Name=Elevation
Artist=U2
Composer=Bono>
I don't have a problem using XPath and for-each commands to extract the
data out of the XML. The trouble I am having is taking each <key> and
assigning it to it's trailing element.
Also does anyone know how I can format the XML as above with all the
elements within the CD tag?
Thanks for help out the newbie.
am sure for most of you this is pretty easy and I know I am missing
something small. Here is a sample of my XML below:
<CD>
<key>Track ID</key>
<integer>37</integer>
<key>Name</key>
<string>Elevation</string>
<key>Artist</key>
<string>U2</string>
<key>Composer</key>
<string>Bono</string>
</CD>
I want to trasnform this into:
<CD
Track ID=37
Name=Elevation
Artist=U2
Composer=Bono>
I don't have a problem using XPath and for-each commands to extract the
data out of the XML. The trouble I am having is taking each <key> and
assigning it to it's trailing element.
Also does anyone know how I can format the XML as above with all the
elements within the CD tag?
Thanks for help out the newbie.