PDA

View Full Version : xp seems not to find the stylesheet



angiras
Feb 10th, 2003, 12:50 PM
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
Feb 10th, 2003, 12:57 PM
I'd Check it out as I think that may be the root of the problem.

angiras
Feb 10th, 2003, 01: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
Feb 10th, 2003, 02: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-

jkd
Feb 10th, 2003, 02:44 PM
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
Feb 10th, 2003, 03: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
Feb 10th, 2003, 04: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-

jkd
Feb 10th, 2003, 04:50 PM
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
Feb 10th, 2003, 04: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
Feb 10th, 2003, 05: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-

meow
Feb 10th, 2003, 05:08 PM
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
Feb 10th, 2003, 05:23 PM
the space after for <br />, or any, is just a recomandation , it is not strict specially into a transitional XHTML

angiras
Feb 10th, 2003, 05: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
Feb 10th, 2003, 05: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
Feb 10th, 2003, 06:02 PM
thank you very much for helping ! I look at the link

Tails
Feb 10th, 2003, 09: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
Feb 10th, 2003, 09:20 PM
i wasnt to happy with xp either ....

angiras
Feb 10th, 2003, 09: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
Feb 10th, 2003, 09: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
Feb 11th, 2003, 01: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
Feb 11th, 2003, 01: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
Feb 11th, 2003, 03: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
Feb 11th, 2003, 11: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
Feb 11th, 2003, 01: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
Feb 11th, 2003, 09: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
Feb 11th, 2003, 11: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