Can XSLT render ASP.NET MVC controls / code?

Is there a way to render ASP.net MVC controls or code directly in an XSLT / XSL transformation file in the .NET Framework? If so, can you provide me with a sample or a link?

+1


a source to share


2 answers


I am reading an excellent ASP.NET MVC book from Apress: http://www.amazon.com/Pro-ASP-NET-Framework-Steven-Sanderson/dp/1430210079

Chapter 10 has a section titled "Implementing a Custom Viewer" which shows you how to follow step-by-step how to implement an XSLT viewer. Its actually quite simple (wish I could post it but don't want to infringe on copyright).



I highly recommend this book to everyone (I bought and uploaded the e-book to their website), the author explains the situation really well .... OTOH, I recommend that you avoid these autogravic red books ... if you don't like books that consist mostly of screenshots and code dumps, with little effort to clarify concepts.

+3


a source


While it is possible (use the same strategy as in html, but often bother VS to get it to work, and use native text outputs for anything that XSLT is too stubborn to touch), this is almost certainly not what you are really wants to do. Even if you already have XSLT for generating html documents, it looks like a bad idea to me. Instead, you should try looking for "Asp.Net Data Binding XML". You will find results such as this one that will likely give you significantly better and more comfortable results.



+1


a source







All Articles