I’m working on an existing MVC3 application. Usually when working on MVC3 projects I expect to see HTML & MVC3 markup in the Views (.cshtml).
However, with this application, each view only has a call to XSLTEngine.Raw(). Looking through this code this is making calls to XSL files which contain an XML-like syntax containing elements which appear to be rendered as HTML (Presumably by the XSLTEngine.Raw() method).
What are the benefits of storing this content in XSL files instead of HTML/MVC3 syntax within the View file?
If this is a port of an older application that used XML as a data source, the easiest thing to do in order to convert to MVC is to reuse the XML data and transform it using XSLT.
To be honest, it makes little sense to port such an application at all (as essentially, it is the same application on a different framework), unless one can’t find developers conversant in the older technology anymore.