I'm currently writing an MVC 5 application and one of my web pages requires that I transform some XML using an XSLT and render the results as HTML on a web page, I've managed to get this working using this great example here: Using XSLT in ASP .NET MVC 3.
This example appears to add a CacheDependency to the Response object, however the constructor for a new CacheDependency requires you pass an absolute file path to the XSLT. This is working fine if I pass the hard disk location of the XSLT to the constructor for eg:
Response.AddCacheDependency(new CacheDependency(@"C:\Mytempalates\TheTemplate.xslt"));
However, I'm wondering if it's possible pass a virtual/relative path as a parameter to this constructor instead as Ideally I don't want to be hitting the disk.
So if my template was hosted at: http://www.mywebsite.com/Templates/TheTemplate.xslt How can I add it as a CacheDependency?
Thanks in advance!