Convert XML Attributes To Elements XSLT

pimpinjg

New Member
New to xslt, just trying to convert attributes to sub elements, ie turn the following:\[code\]<WP featured="yes" player="no" dancers="no" series="logos" archive="no" fanart="no" id="eclipse_logos_"> <seriesName>LOGOS</seriesName> <selection>ECLIPSE</selection> <imgurl>http://www.nba.com/warriors/photos/eclipse_logos_</imgurl> <res>1024x1024r(iPad/iPhone)?1280x1024r(Regular)?1440x900r(Widescreen)?1920x1080r(HDTV)?1920x1200r(Widescreen)</res></WP>\[/code\]Into:\[code\]<WP> <featured>yes</featured> <player>no</player> <dancers>no</dancers> <series>logos</series> <archive>no</archive> <fanart>no></fanart> <id>eclipse_logos_</id> <seriesName>LOGOS</seriesName> <selection>ECLIPSE</selection> <imgurl>http://www.nba.com/warriors/photos/eclipse_logos_</imgurl> <res>1024x1024r(iPad/iPhone)?1280x1024r(Regular)?1440x900r(Widescreen)?1920x1080r(HDTV)?1920x1200r(Widescreen)</res></WP>\[/code\]Have been messing around with xsl stylesheets that do similar things to try to get them to do what I want, but seem to come up sort everytime :(
 
Back
Top