471,330 Members | 1,220 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

XSL - problem with finding CSS file

I have a piece of code that looks like this:

XPathNavigator l_nav =
xml_document.DocumentElement.CreateNavigator();
XslCompiledTransform l_xslt = new XslCompiledTransform();
l_xslt.Load(xsl_document_location);
l_xslt.Transform(l_nav, null, output_stream);
//l_xslt.Transform(l_nav, null, new
StreamWriter("TRANSFORMED.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.html 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.WebBrowser, even though I have put the CSS file just
about everywhere. What am I doing wrong?
Jul 16 '08 #1
3 994
Well, when you have it in RAM, how are you giving it to the
WebBrowser? It needs to resolve the css relative to the html...

Marc
Jul 16 '08 #2
Thanks Marc,

I don't "give" it at all. My thought is that it will resolve the link rel
file name and load it when it needs it. Won't that happen?

Rgds,
Joachim

"Marc Gravell" wrote:
Well, when you have it in RAM, how are you giving it to the
WebBrowser? It needs to resolve the css relative to the html...

Marc
Jul 18 '08 #3
I have all the files belonging to my app in the same folder. Shouldn't that
be enough?

"Marc Gravell" wrote:
Well, when you have it in RAM, how are you giving it to the
WebBrowser? It needs to resolve the css relative to the html...

Marc
Jul 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by D. Alvarado | last post: by
8 posts views Thread by Rick Strahl [MVP] | last post: by
25 posts views Thread by Dan Stromberg | last post: by
3 posts views Thread by Daz | last post: by
6 posts views Thread by Florian Lindner | last post: by
1 post views Thread by avik1612 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.