I have a ASP.NET snippet where I would like xsl to apply to the xml. For some reason, I get runtime errors when I use TransformFile to try and transform the xml. Here is the aspx,
<%@ Import Namespace="System.Data" %>
<form runat="server">
<asp:Repeater ID="myMusic" runat="server" DataSourceID="XmlDataSource1">
<HeaderTemplate>
<table class="songs">
<tr>
<th width="35%">Title</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%# XPath("title")%></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="alice_music_list.xml" TransformFile="cd_collection.xsl" XPath="/music_songs/song" />
</form>
Can anyone please provide some pointers on why TransformFile does not work?
Thanks for your help.