Using XML/XSL in webBrowser Control
Posted on 2004-09-29
I'm currently retrieving an xml block using a stylesheet from the database and storing it in a variable. I can write this block to the webBrowser control, but it does not find the stylesheet that I want to utilize for formatting. I've tried absolutely pathing the stylesheet in the xml block and numerous other path options and none seem to work. When I save the xml to the drive and open it in the browser object all is fine. I'm assuming it cannot resolve the position of the stylesheet. Is there a special trick to this? Any sort of direction would be helpful!!
Here is the xml block
<?xml-stylesheet TYPE=''text/xsl'' href=''/xsl/AGENT_OUTBOUND_CALLS.xsl''?>
<COMMENTS>Need TO call about something</COMMENTS>
Browser call (sXML is the above code retrieved from the DB, i'd prefer not to write it to a file and just dynamically populate the browser):
frmConsole.wbOutbound.Navigate ("about:" + sXML)