Solved

Why css file referenced in xslt searched on client side?

Posted on 2008-10-22
3
218 Views
Last Modified: 2013-11-18
Hi,
My problem is that I using a css file in my web application and its works fine.
I also generating an html file (that opened on client side as .xls and .doc) using xslt, the xslt file has a reference for the same .css file, located at: MyApp\styles\StyleSheets\my_styles.css

I make the reference for this file is the same way from the ascx files and from the xslt:
<link href="styles/StyleSheets/my_styles.css" rel="stylesheet" type="text/css" />

.. but, when I opening the file generated by xslt I get the attached error.

Waiting for any help.. :)




css-error.gif
0
Comment
Question by:netformx
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
mirzas earned 500 total points
Comment Utility
Put the full path
<link href="http://hostname/MyApp/styles/StyleSheets/my_styles.css" rel="stylesheet" type="text/css" />

Open in new window

0
 

Author Comment

by:netformx
Comment Utility
Thank you miraz, unfortunately I see that I have other problems because the transformation of the xslt is on the client side.
I understood that there is a way to transform the xslt to html n the server side,
I assume that using this will solve my problem.
Does anyone have code in c# for such transformation (on the server side)?
0
 
LVL 6

Expert Comment

by:mirzas
Comment Utility
That is another question.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The viewer will learn how to count occurrences of each item in an array.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now