HighDots Forums  

Validation Issues

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Validation Issues in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
downview
 
Posts: n/a

Default Validation Issues - 08-23-2004 , 02:34 PM






When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree. The confusing
thing is my page validates as XHTML Transitional 1.0. Does anyone have
any idea what would cause this to happen? Here's the actual message
from the w3c validator:

Line: 0

Parse Error - :


Mahalo for you help!

--a down view

Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: Validation Issues - 08-23-2004 , 02:36 PM






On 23 Aug 2004 12:34:59 -0700, downview <downview (AT) gmail (DOT) com> wrote:

Quote:
When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree. The confusing
thing is my page validates as XHTML Transitional 1.0. Does anyone have
any idea what would cause this to happen? Here's the actual message
from the w3c validator:

Line: 0

Parse Error - :


Mahalo for you help!

--a down view

Crystal ball's in the shop. How about a URL?


Reply With Quote
  #3  
Old   
David Dorward
 
Posts: n/a

Default Re: Validation Issues - 08-23-2004 , 03:07 PM



downview wrote:

Quote:
When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree.
And so you do - does it tell you that you don't have one?

Quote:
Here's the actual message from the w3c validator:
That's a different message - but you aren't providing any clue as to what
code triggers it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #4  
Old   
downview
 
Posts: n/a

Default Re: Validation Issues - 08-24-2004 , 12:18 AM



David Dorward <dorward (AT) yahoo (DOT) com> wrote

Quote:
downview wrote:

When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree.

And so you do - does it tell you that you don't have one?

Here's the actual message from the w3c validator:

That's a different message - but you aren't providing any clue as to what
code triggers it.

Sorry to be so ambiguous, but that's exactly the message.

And I quote:

To work as intended, your CSS style sheet needs a correct document
parse tree. This means you should use valid HTML.

ERRORS

* Line: 0

Parse Error - :
______________________________________

After this, every bit of my markup validates. Like I said, though, my
index page validates as XHTML Transitional 1.0, which is giving me the
confusion. I'm thinking perhaps there is a bug, but here's the CSS
markup to ponder as you requested:

* body {
o background-image : url(images/side_background.jpg);
o margin : 0;
o padding : 40px 20px;
o font : x-small Georgia, Serif;
o text-align : center;
o color : #333;
o font-size : small;
o font-size : small;
}
* h2 {
o font-family : Arial Bold, sans-serif;
o font-size : 1.3em;
o background : #c0c0ff;
o color : #fff;
o margin : 0 0 0 10px;
}
* ul {
o list-style-image : url(images/bullet.gif);
o list-style-position : outside;
}
* {
o font-family : Trebuchet MS, sans-serif;
o color : #728da6;
o font-size : 14px;
o text-decoration : none;
}
* a:link {
o font-family : Trebuchet MS, sans-serif;
o color : #728da6;
o font-size : 14px;
o text-decoration : none;
}
* a:visited {
o font-family : Trebuchet MS, sans-serif;
o color : #728da6;
o font-size : 14px;
o text-decoration : none;
}
* a:active , a:hover {
o font-family : Trebuchet MS, sans-serif;
o color : red;
o font-size : 14px;
o text-decoration : none;
o border-bottom : 1px dotted red;
}
* #header {
o width : 660px;
o height : 80px;
o margin : 0 auto 10px;
o background-image : url(Images/foreli.gif);
o background-position : 50% 50%;
o background-repeat : no-repeat;
}
* #content {
o width : 730px;
o margin : 0 auto;
o padding : 10px;
o text-align : left;
o background : #fff;
}
* #main {
o width : 510px;
o float : left;
o padding : 5px;
o background : #fff;
o border : 1px solid #728da6;
}
* #main a {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : #728da6;
o text-decoration : none;
o border-bottom : 1px dotted #728da6;
}
* #main a:link {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : #728da6;
o text-decoration : none;
o border-bottom : 1px dotted #728da6;
}
* #main a:visited {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : #728da6;
o text-decoration : none;
o border-bottom : 1px dotted #728da6;
}
* #main a:active , #main a:hover {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : red;
o text-decoration : none;
o border-bottom : 1px dotted red;
}
* #sidebar {
o width : 125px;
o height : 300px;
o float : right;
o padding : 5px 0 0;
o background-image : url(Images/dropshadow.gif);
}
* #footer {
o clear : both;
o width : 250px;
o margin : 0 0 0 300px;
o padding : 50px;
}
* .body {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : black;
o text-decoration : none;
}
* .footer {
o font-family : Arial, sans-serif;
o font-size : 9px;
o color : gray;
}
* hr {
o width : 75%;
}


*** Thanks for the replies and any help *** down view


Reply With Quote
  #5  
Old   
Jan Roland Eriksson
 
Posts: n/a

Default Re: Validation Issues - 08-24-2004 , 01:34 AM



On 23 Aug 2004 22:18:15 -0700, downview (AT) gmail (DOT) com (downview) wrote:

Quote:
Sorry to be so ambiguous, but that's exactly the message.

And I quote:
To work as intended, your CSS style sheet needs a correct document
parse tree. This means you should use valid HTML.

ERRORS
* Line: 0
Parse Error - :
______________________________________

...I'm thinking perhaps there is a bug
A far fetched idea in your situation...

Quote:
but here's the CSS markup to ponder as you requested:

* body {
o background-image : url(images/side_background.jpg);
o margin : 0;
o padding : 40px 20px;
o font : x-small Georgia, Serif;
o text-align : center;
o color : #333;
o font-size : small;
o font-size : small;
}
Things like this makes me wonder; what's wrong with all the CSS
tutorials out there? How on earth is it possible for someone to be so
totally mislead by already available information?

In other words; What the heck is that asterisk doing in front of 'body'
and why, fer crying out loud, do you have that 'o' character in front of
every property:value assignment?

Maybe this is just a case of a usenaut that has not read Q&A.6 in the
newly revised newsgroup FAQ?

--
Rex




Reply With Quote
  #6  
Old   
David Dorward
 
Posts: n/a

Default Re: Validation Issues - 08-24-2004 , 01:42 AM



downview wrote:
Quote:
* body {
o background-image : url(images/side_background.jpg);
Bullet marks? Are you perhaps showing us the "Pretty valid CSS" outputted by
the validator instead of your original source file which is triggering the
error?


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #7  
Old   
downview
 
Posts: n/a

Default Re: Validation Issues - 08-24-2004 , 05:25 AM



David Dorward <dorward (AT) yahoo (DOT) com> wrote

Quote:
downview wrote:
* body {
o background-image : url(images/side_background.jpg);

Bullet marks? Are you perhaps showing us the "Pretty valid CSS" outputted by
the validator instead of your original source file which is triggering the
error?
I was, actually. Sorry about that. Minus the asterics and bullets,
it's the same though. Here goes again. (thanks for sticking with this
*grin*)


body
{
background-image: url(images/side_background.jpg);
margin:0;
padding:40px 20px;
font:x-small Georgia,Serif;
text-align:center;
color:#333;
font-size/* */:/**/small;
font-size: /**/small;
}

h2
{font-family: Arial Bold, sans-serif;
font-size: 1.3em;
background: #C0C0FF;
color: #fff;
margin: 0px 0px 0px 10px;
}

ul
{list-style-image: url(images/bullet.gif);
list-style-position: outside;
}
a: {
font-family: Trebuchet MS,sans-serif;
color: #728da6;
font-size: 14px;
text-decoration: none;
}
a:link {
font-family: Trebuchet MS,sans-serif;
color: #728da6;
font-size: 14px;
text-decoration: none;
}
a:visited {
font-family: Trebuchet MS,sans-serif;
color: #728da6;
font-size: 14px;
text-decoration: none;
}
a:active,
a:hover {
font-family: Trebuchet MS,sans-serif;
color: red;
font-size: 14px;
text-decoration: none;
border-bottom: 1px dotted red;
}

#header {
width:660px;
height: 80px;
margin:0 auto 10px;
background-image: url(Images/foreli.gif);
background-position: center;
background-repeat: no-repeat;
}

#content {
width:730px;
margin:0 auto;
padding:10px;
text-align:left;
background: #fff; }

#main {
width:510px;
float:left;
padding: 5px;
background: #fff;
border: 1px solid #728da6;}

#main a {
font-family: Times New Roman,sans-serif;
font-size: 14px;
color: #728da6;
text-decoration: none;
border-bottom: 1px dotted #728da6;

}
#main a:link {
font-family: Times New Roman,sans-serif;
font-size: 14px;
color: #728da6;
text-decoration: none;
border-bottom: 1px dotted #728da6;

}
#main a:visited
{
font-family: Times New Roman,sans-serif;
font-size: 14px;
color: #728da6;
text-decoration: none;
border-bottom: 1px dotted #728da6;
}

#main a:active,
#main a:hover {
font-family: Times New Roman,sans-serif;
font-size: 14px;
color: red;
text-decoration: none;
border-bottom: 1px dotted red;
}

#sidebar {
width: 125px;
height: 300px;
float:right;
padding: 5px 0px 0px 0px;
background-image: url(Images/dropshadow.gif);
}

#footer {
clear: both;
width: 250px;
margin: 0px 0px 0px 300px;
padding: 50px;

}

..body {
font-family: Times New Roman,sans-serif;
font-size: 14px;
color: black;
text-decoration: none;
}

..footer {
font-family: Arial, sans-serif;
font-size: 9px;
color: gray;
}
hr {
width: 75%;
}


Reply With Quote
  #8  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Validation Issues - 08-24-2004 , 05:49 AM



On 24 Aug 2004 03:25:53 -0700, downview wrote:
Quote:
David Dorward <dorward (AT) yahoo (DOT) com> wrote

downview wrote:

* body {
o background-image : url(images/side_background.jpg);

Bullet marks? Are you perhaps showing us the "Pretty valid CSS" outputted by
the validator instead of your original source file which is triggering the
error?

I was, actually. Sorry about that. Minus the asterics and bullets,
it's the same though. Here goes again.
Just curious.. is there some actual *reason*
you cannot supply an URL, as suggested by Neal?

It takes potential helpers 'straight to
the source' ..so to speak.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Reply With Quote
  #9  
Old   
downview
 
Posts: n/a

Default Re: Validation Issues - 08-24-2004 , 09:10 AM



Jan Roland Eriksson <jrexon (AT) newsguy (DOT) com> wrote

Quote:
On 23 Aug 2004 22:18:15 -0700, downview (AT) gmail (DOT) com (downview) wrote:

Sorry to be so ambiguous, but that's exactly the message.

And I quote:
To work as intended, your CSS style sheet needs a correct document
parse tree. This means you should use valid HTML.

ERRORS
* Line: 0
Parse Error - :
______________________________________

...I'm thinking perhaps there is a bug

A far fetched idea in your situation...

but here's the CSS markup to ponder as you requested:

* body {
o background-image : url(images/side_background.jpg);
o margin : 0;
o padding : 40px 20px;
o font : x-small Georgia, Serif;
o text-align : center;
o color : #333;
o font-size : small;
o font-size : small;
}

Things like this makes me wonder; what's wrong with all the CSS
tutorials out there? How on earth is it possible for someone to be so
totally mislead by already available information?

In other words; What the heck is that asterisk doing in front of 'body'
and why, fer crying out loud, do you have that 'o' character in front of
every property:value assignment?

Maybe this is just a case of a usenaut that has not read Q&A.6 in the
newly revised newsgroup FAQ?

Getting a little off topic here, but I'll give a couple answers. I'm
not supplying the URI because this site is a password-protected page
that I wrote and maintain for my wife. I'm an infantry soldier
currently on deployment in Iraq and it contains a lot of personal
stuff. While I'm appriciative to the help, I'm rather keep my personal
life personal. Also, this validation is for the CSS markup alone and
that, in its complete, natural form has been supplied. I've scoured my
..css page for an errant ' : ' which is the only hint the validator is
giving me could be the source of this parse error. As for the
mini-bash about being totally mislead, I suggest you read the entire
thread, as this topic was pointed out earlier. The asterics and
bullets were from my copy/pasting the validator results rather than
the actual code. An error I fixed once it had been nicely pointed out.
So if anyone has any idea why every element of my .css page validates
except for this single, mysterious parse error:

Line: 0
Parse Error - :

Please look through my source I've provided (the actual, not the one
with the bullets and asterics, thank you) and see if you can give me a
hand.

Once again. Thank you.


Reply With Quote
  #10  
Old   
Chris Morris
 
Posts: n/a

Default Re: Validation Issues - 08-24-2004 , 09:27 AM



downview (AT) gmail (DOT) com (downview) writes:
Quote:
Getting a little off topic here, but I'll give a couple answers. I'm
not supplying the URI because this site is a password-protected page
Can you copy the CSS file to a non-password protected area?

Quote:
So if anyone has any idea why every element of my .css page validates
except for this single, mysterious parse error:

Line: 0
Parse Error - :
Nothing obvious in the source. It may be something to do with the
actual CSS file that isn't obvious (or gets lost) in a copy-and-paste
of the text.

--
Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.