I have a piece of code that looks like this:
XPathNavigator l_nav =
xml_document.Do cumentElement.C reateNavigator( );
XslCompiledTran sform l_xslt = new XslCompiledTran sform();
l_xslt.Load(xsl _document_locat ion);
l_xslt.Transfor m(l_nav, null, output_stream);
//l_xslt.Transfor m(l_nav, null, new
StreamWriter("T RANSFORMED.html "));
I have a link to a css document in the xsl code. If I uncomment the last
row, which stores the transform into a file, the file TRANSFORMED.htm l is
created and it looks just fine with the CSS styles applied. But if I only use
the line above and keep the resulting translation in RAM the css styles are
NOT applied when sending the translation to a
System.Windows. Forms.WebBrowse r, even though I have put the CSS file just
about everywhere. What am I doing wrong?
XPathNavigator l_nav =
xml_document.Do cumentElement.C reateNavigator( );
XslCompiledTran sform l_xslt = new XslCompiledTran sform();
l_xslt.Load(xsl _document_locat ion);
l_xslt.Transfor m(l_nav, null, output_stream);
//l_xslt.Transfor m(l_nav, null, new
StreamWriter("T RANSFORMED.html "));
I have a link to a css document in the xsl code. If I uncomment the last
row, which stores the transform into a file, the file TRANSFORMED.htm l is
created and it looks just fine with the CSS styles applied. But if I only use
the line above and keep the resulting translation in RAM the css styles are
NOT applied when sending the translation to a
System.Windows. Forms.WebBrowse r, even though I have put the CSS file just
about everywhere. What am I doing wrong?
Comment