XSL Transform in WebBrowser control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
The new WebBrowser control in .Net 2.0 is great... does anyone know how I
can view an xsl-transformed xml file in it? Ideally I'd set the XML file, set
the Xslt file, and then view the result.
The xml file does not initially have a reference to the Xslt file.

Thanks,
Mark
 
Don't focus on transforming XML inside the WebBrowser control.

Run the transform in the Widnows Forms code "behind" the control.

Then use the WebBrowser.Document.Write() method or the HtmlElement.InnerHtml
property to inject the XHTML you obtain from the transformation.
 
Back
Top