473,503 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL & CSS Cross Browser Compat Question.

Hey all. I'm working on a fairly large XSL file along with an
external css file for my xml data. I'm running into cross browser
issues. The code below works in IE, but not in Firefox 3.0. Any
thoughts on why it doesn't work in Firefox 3.0?

Expand|Select|Wrap|Line Numbers
  1.  
  2. <link rel="stylesheet" href="reportStyle.css" type="text/css"/>
  3.  
  4.  
Sep 25 '08 #1
2 1598
By the way: The example code above is in the XSL.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <!-- // Primary Template // -->
  3. <xsl:template match="/">
  4. <html>
  5. <head>
  6. <title>Title</title>
  7. <!-- external css for IE -->
  8. <link rel="stylesheet" href="reportStyle.css" type="text/css"/>
  9. </head>
  10. <body>
  11. <div>
  12. <xsl:value-of select="/"/>
  13. </div>
  14. </body>
  15. </html>
  16. </xsl:template>
  17.  
Sep 25 '08 #2
SeanInSeattle wrote:
By the way: The example code above is in the XSL.
<!-- external css for IE -->
<link rel="stylesheet" href="reportStyle.css" type="text/css"/>
To check that it is loading correctly in FF, install the WebDeveloper
toolbar and click on View CSS.

The fact that you have commented this line "external css for IE" makes
me wonder if perhaps it's the CSS itself which is causing the problem,
not the loading of the reportStyle.css file. Neither browser implements
all of CSS2, and the bits they do implement are sometimes done
differently. Writing cross-browser CSS is a black art :-)

(It would have been useful if both Microsoft and Mozilla had bothered to
read the fine documentation and learn something about document
engineering before starting to implement CSS in the first place, but
that was never going to happen, alas.)

///Peter
Sep 26 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1943
by: Pete | last post by:
I'm working (playing) on a mouse following script. Yes, the sort no one likes but I'm having great fun tinkering with it - sad. Anyway, if there's enough page content to cause scrolling and I...
5
8631
by: Jukka K. Korpela | last post by:
The HTML specifications define the entities &zwj;, &zwnj;, &lrm;, &rlm; as denoting zero-width joiner, zero-width non-joiner, left to right mark, and right to left mark. Is there any evidence of...
1
1551
by: sreak | last post by:
Need to find the cause of the following error: The sample code goes as follows:( file name version.cpp ) #include <iostream> struct version { int val; }; int main()
5
1748
by: Florian Proch | last post by:
Hi all... i'm currently working for a big project to construct a website. We need to support some browser and OS : IE 5.0 -> IE 6, Mozilla 1.2 -> 1.7, Opera 5 -> Opéra 7.5x, Netscape 4.75 -> NS...
2
1370
by: Eric Caron | last post by:
Hi everybody, I was doing some cross-browser tests today and I found out that if you specify the width and height for a button type control, asp.net doesn't output the style information when...
8
1595
by: rischfre | last post by:
Hi In order to build a weather prediction page, I was thinking to write down a Javascript (on the client). This javascript should contact a server (www.live.com) in ordert to extract the weather...
1
1805
by: prof_martin | last post by:
Hi Everyone, I got question from Customer. What kind of browser and version which can browse properly if application running on ASP.net v.1.1 or 2.0 beside IE.5x above? Firefox, Nescape,...
14
5907
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
7
1894
by: Taras_96 | last post by:
Hi all, I was hoping to get some clarification on a couple of questions I have: 1) When should htmlspecial characters be used? As a general rule should it be used for text that may contain...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.