Can't figure out how to covnert this XML to XSL for a gridview
-
Hi, I am trying to bind a XML file to a grdiview and get an error: The data source for GridView with id 'gvPhotos' did not have any properties or attributes from which to generate columns. Ensure that your data source has content. I found out that I have to make and xsl format to solve this issue. Here is the original XML file. What's the correct XSL format for it ? Thanks for the time and effort. <gallery> <settings> <imagesFolder>friedmans-admin/Photos/</imagesFolder> <bgImage alpha="100" source="images/bg.jpg"/> <image align="center" cornerRadius="0" scaleMode="fill" transitionEffect="fade" useShadow="true"/> <thumbnail width="60" height="40" cornerRadius="0" alpha="70" outlineColor="0xFFFFFF" outlineColorOnRollOver="0xFFFFFF" outlineColorOnClick="0x8B0000" useShadow="true" usePreview="true"/> <thumbBar scrollSpeed="10" position="bottom"/> <preview alpha="100" width="200" height="100" outlineColor="0xFFFFFF" useShadow="true" cornerRadius="0"/> <caption position="bottom" visibleMode="onRollOver" bgAlpha="30" color="0xFFFFFF" bgColor="0x000000" fontName="Verdana" fontSize="12"/> <slideshow start="false" delay="3" loop="true" stopAutoOnClick="true"/> <preloader alpha="100" usePreloader="true" /> <buttons fullScreenButton="true" navigationButtons="true" slideshowButton="true" /> <sounds onRollOver="sounds/over.mp3" onClick="" /> <picasa user="" albumID="" /> </settings> <items> <item source="1.jpg" thumb="" description="Image 1" link="http://flash-gallery.com" target="_blank"/> </items> </gallery>