I'm currently trying to move an XML/XSLT-based website into SharePoint. Basically, the existing site consists of a load of XML files, each of which references (via xml-stylesheet) an XSLT file, which transforms the XML into a full HTML file (including <html>
, <head>
and <body>
etc.).
What I'm trying to do at the moment is just to dump the existing site into a SharePoint Document Library, let SharePoint control versioning, access rights etc, but continue to have IE render each XML file into complete HTML pages. However, when I try to view the XML file, SharePoint/IE just tries to download the source, rather than rendering it. How can I fix this?
(Also, any suggestions for a more-SharePointy way of doing this would be appreciated. I've tried using an XML Viewer web part but couldn't get it to render properly; it might be nice to turn each of these XML pages into SP Wiki pages, but that's a lot of work to do essentially by hand; a Page Viewer webpart has the same issue, in that it tries to download the file rather than display it.)