View Full Version : xp seems not to find the stylesheet
angiras
02-10-2003, 11:50 AM
I have a problem with a site on localhost
with a normal xhtm tansitional document the page is normal with windows 2000, but windows XP doesn't find the stylesheet
<link type="text/css" rel="stylesheet" href="styles/messages.css" media="all"/>
have you any idea why ?
tommysphone
02-10-2003, 11:57 AM
I'd Check it out as I think that may be the root of the problem.
angiras
02-10-2003, 12:02 PM
ok for the root , I have also think to it, but why XP and not 2000 ?
and if it is the problem what do you think I have to do ?
thank you
sage45
02-10-2003, 01:39 PM
I don't know if this was a typo or if this is your actual line, but try taking off the last '/'...
Instead of:
<link type="text/css" rel="stylesheet" href="styles/messages.css" media="all"/>
Try:
<link type="text/css" rel="stylesheet" href="styles/messages.css" media="all">
Not exactly sure if this would have any bearing on the issue, but the last '/' is not needed...
Also, what fonts are being used in the stylesheet... Remember, the system will only use fonts that are installed...
-saige-
Originally posted by sage45
Not exactly sure if this would have any bearing on the issue, but the last '/' is not needed...
XHTML? Well-formed XML requires all tags to be closed.
angiras
02-10-2003, 02:03 PM
of course I cannot remove /
it must be .../> or ...></link>
there is another reason, (and fonts are not the problem )
thank you anyway
__________________
sage45
02-10-2003, 03:24 PM
Check yourself... The link tag does not require or in reality is forbidden from using a closing aurgument...
http://www.w3.org/TR/1998/REC-html40-19980424/index/elements.html
Other tags that are forbidden from using closing arguments or end tags are:
AREA
BASE
BASEFONT
BR
COL
FRAME
HR
IMG
INPUT
ISINDEX
META
PARAM
Following is a list of tags where a closing argument or end tag is optional (I, however, do use end tags on these):
BODY
COLGROUP
DD
DT
HEAD
HTML
OPTION
P
TBODY
TD
TFOOT
TH
THEAD
TR
As I said, you can check this as the link above is directly from the W3C website... For those who do not know, the W3C (World Wide Web Consortium) was created in October 1994 to lead the World Wide Web to its full potential by developing common protocols that promote its evolution and ensure its interoperability. W3C has around 450 Member organizations from all over the world and has earned international recognition for its contributions to the growth of the Web.
HTH,
-saige-
Originally posted by sage45
Check yourself... The link tag does not require or in reality is forbidden from using a closing aurgument...
http://www.w3.org/TR/1998/REC-html40-19980424/index/elements.html
Other ta
Check again?
http://www.w3.org/TR/xhtml1/
http://www.w3.org/XML/
C.2. Empty Elements
Include a space before the trailing / and > of empty elements, e.g. <br />, <hr /> and <img src="karen.jpg" alt="Karen" />. Also, use the minimized tag syntax for empty elements, e.g. <br />, as the alternative syntax <br></br> allowed by XML gives uncertain results in many existing user agents.
angiras
02-10-2003, 03:56 PM
my document is XHTML
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='fr'>
and not closing tag are forbidden
like <br /> or <hr />
or
<meta http-equiv="Content-type" content="text/html; charset=EUC-JP" />
sage45
02-10-2003, 04:05 PM
Well then I concede... However, according to what I just read your line is still formatted incorrectly...
<link type="text/css" rel="stylesheet" href="styles/messages.css" media="all"/>
Should be:
<link type="text/css" rel="stylesheet" href="styles/messages.css" media="all" />
-sage-
The space? That's just used because it for some odd reason or other stops old browsers from crashing. It's not needed for other reasons.
angiras
02-10-2003, 04:23 PM
the space after for <br />, or any, is just a recomandation , it is not strict specially into a transitional XHTML
angiras
02-10-2003, 04:25 PM
but my problem is solved I ghad just to give the full path (I don't know why)
<link type="text/css" rel="stylesheet" href='<%=Server.MapPath("styles/messages.css")%>' media="all"/>
sage45
02-10-2003, 04:38 PM
Thanks for the update...
I also did a search and found this for M$
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/766/msdncompositedoc.xml
It's an update to the XML Parser...
The suggestion that I was going to make above and beyond any tag changes was to make sure you have all your security patches and such installed for XP...
-sage-
angiras
02-10-2003, 05:02 PM
thank you very much for helping ! I look at the link
Tails
02-10-2003, 08:10 PM
Heh, XP WAS the root of the problem you were looking for. Supposedly the greatest OS for Networking, it is not compatible with any Network and Multiplayer games I have tried. Microsoft cannot keep things in a fair range. 2000 and XP are both out now and conflict with each other enough as well as the past. As for me, I'm sticking with Windows 98. A few people I know that have XP are going back to that as well.
cg9com
02-10-2003, 08:20 PM
i wasnt to happy with xp either ....
angiras
02-10-2003, 08:50 PM
I have win 200 pro an ddon't want at all to install XP , it is also full of spys !
I wonder if I will not ru to unix in the future
a bit enough of microsoft
Tails
02-10-2003, 08:55 PM
Is Unix compatible with Windows? I know nothing about Unix, and I agree that it is a good time to start doing my homework and look around at other platforms.
allida77
02-11-2003, 12:14 AM
I have had XP for a few months and have no complaints. I play alot of online multiplayer games and have not had problems. I would recommend XP Pro.
Tails
02-11-2003, 12:22 AM
I tried Zbattle (online snes games) and that had problems. We were told in school that Bill Gates has a monopoly (duh) and has a fine of $2,000,000 per day for violating the other's freedom to be able to look for other OSs. Monopolies are illegal if they reduce the right to competition. And with no competition, Microsoft has gotten lazy. XP is in many ways, a downgrade from Windows 98. They stopped trying so hard, and that's why they have so many different OSs. XP, XP Pro, 2000, 2000 Pro, and each even ranging from the home editions and the pros have things that the other doesn't. This is a serious problem. As for me, I'm sticking with Windows 98 until something good emerges.
allida77
02-11-2003, 02:45 AM
Believe what you will but it is not an OS's responsibility to make all games and software run on it. If this was the case there would be alot of people getting rid of their dual boots and running redhat. You should be compaining about the programmers of the game not MS.
ronaldb66
02-11-2003, 10:44 AM
Oh please... If MS would disclose everything software makers need to know about Windows they wouldn't have such a hard time making it work. Then again, commercial pressure most likely leads them to release stuff that isn't properly tested yet, too.
All the more reason to give open source a second (or maybe third) look.
brothercake
02-11-2003, 12:56 PM
Originally posted by ronaldb66
If MS would disclose everything software makers need to know
They do - Windows may be closed-source, but the data and the objects are wide open, and that's all that matters to anyone with more than a sophistic interest.
Tails
02-11-2003, 08:27 PM
Stop speaking mysteries! Tell me what this Unix, Linux, and Redhat is all about. If it is as good as you say (or what you are not saying by speaking in mysteries), then I have nothinga gainst trying something new. All I asked is what are they, what can they do, and how compatible are they/can they be?
cg9com
02-11-2003, 10:58 PM
Originally posted by ronaldb66
Then again, commercial pressure most likely leads them to release stuff that isn't properly tested yet, too
i agree
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.