tags:

views:

101

answers:

3

I've got an XML file with XSL, and CSS layers. When I view this in IE it looks exactly how I want it to look. When I try to save the file, I just get the XML document, what I need it a formatted HTML document.

I'm using VB.NET 2008, but I'd rather use an external tool, then write more code. I've tried wget and have gotten the same results.

+1  A: 

In IE, the transformation is happening on the browser, but the XML file itself isn't getting transformed. This is what you end up downloading.

You can use XslTransform in your code behind to make the transformation and serve it up as html.

Oded
A: 

In IE, have you tried the Save As > Web Archive, single file or the WebPage Complete option? In theory, those methods are supposed to pick up all the "extras" too.

Brad
+1  A: 

You could try the command line transformation utility. It takes an input of the XSL, the XML and outputs the resulting HTML to a file.

Mark Ewer