I've got an ASP.NET page that uses code similar to the following:
<asp: repeater>
<tr><td><b>LabelName</b></td><td><%# SomeMethod(parameter) %></td></tr>
</asp: repeater>
These Labels are presently hardcoded, but there is an XML document that contains something like the following:
<label type="LabelA" name="LabelName" />>
So what I'd like to do is to use XSLT to transform the XML Document Labels into the HTML needed for the page, so that the label name from the XML document would be used. But obviously I'd have to contend with the <%# SomeMethod(parameter) %>
used to pull other data from the database. My question is, what's the best way to do this?
Code deliberately obsfucated to protect the guilty.