I need to fetch data from the list (which I am getting in XML) and then I need to apply the XML data to my XSLT so that it can produce HTML output.
I tried using SPUtility.GetGenericSetupPath to get the XSLT which resides in 14 hive but SPUtility.GetGenericSetupPath doesn't supported in Sandbox web parts.
I got that I will be uploading my XSLT somewhere into SharePoint Library, but the real question is How will I consume it?
SPUtility.GetGenericSetupPath to get the XSLT isn't working in Sandbox.
How will I get the path of XSLT?
This is what I have done with Farm Web Part, now I'm converting it into Sandbox Web Part.
//Transform XML To HTML using ContactList.XSLT XslCompiledTransform XMLTrnsfrm = new XslCompiledTransform(); XMLTrnsfrm.Load(SPUtility.GetGenericSetupPath("TEMPLATE\\LAYOUTS\\ContactsXSLT.xslt"));
Any other solution in mind guys?