Help - Search - Members - Calendar
Full Version: receiving this /*]]>*/ xhtml1.0 strict error. pls help
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
sugarv
The site I'm using for my journal rencently fixed some stuff on their site.. and when I came back.. my page looks weird (navigation links) is done below instead of at the left and I received this error /*]]>*/ when I validated my xhtml strict 1.0

Validation Output: 5 Errors

1. Error Line 56, Column 2: marked section end not in marked section declaration.

/*]]>*/


2. Error Line 56, Column 7: XML Parsing Error: Sequence ']]>' not allowed in content.

/*]]>*/


3. Error Line 56, Column 2: XML Parsing Error: Sequence ']]>' not allowed in content.

/*]]>*/


4. Error Line 56, Column 2: XML Parsing Error: internal error.

/*]]>*/


5. Error Line 56, Column 2: XML Parsing Error: Extra content at the end of the document.

/*]]>*/



Please help me correct this and removed the error. It wasn't like that last week but sisnce the site that's hosting my journbal made some changes.. it affected my script..i thin, pls help again fix the error and what I need to do. Thanks.
Darin McGrew
Can you provide the URL (address) of a document that demonstrates the problem?

Without seeing the actual document, I'm guessing that something's wrong with the
CODE
<script type="text/javascript">
/* <![CDATA[ */
// content of your Javascript goes here
/* ]]> */
</script>
that is often used to hide JavaScript from the validator. But I recommend putting the JavaScript in a separate file and using
CODE
<script src="filename.js" type="text/javascript"></script>
instead.
sugarv
QUOTE(Darin McGrew @ Dec 18 2008, 03:00 PM) *

Can you provide the URL (address) of a document that demonstrates the problem?

Without seeing the actual document, I'm guessing that something's wrong with the
CODE
<script type="text/javascript">
/* <![CDATA[ */
// content of your Javascript goes here
/* ]]> */
</script>
that is often used to hide JavaScript from the validator. But I recommend putting the JavaScript in a separate file and using
CODE
<script src="filename.js" type="text/javascript"></script>
instead.




This is my site http://www.codexed.com/~skylark

the "navigate' link used to be on the left side as well.. and everything was alright then bur after my last post the site made changes and my journal looks crappy and received xhtml errors. pls help with xhtml strict1.0. Thank you.
Darin McGrew
You've got
CODE
[CDATA[
...
/*]]>*/
rather than
CODE
/* <![CDATA[ */
...
/* ]]> */
sugarv
QUOTE(Darin McGrew @ Dec 18 2008, 03:35 PM) *

You've got
CODE
[CDATA[
...
/*]]>*/
rather than
CODE
/* <![CDATA[ */
...
/* ]]> */




I did what you've suggested and I want my page to show like that..cos it used to be like that. However, it used to validate Xhtml strict 1.0... now it's just transitional. I really wanted the page to validate as strict 1.0 because that was how it used to be... before the hosting fixed some bugs and character encodings. How can I make strict?

Sorry I'm being persistent. Thank you.
Frederiek
You still have one HTML error on line 56 for the ending comment.
http://www.htmlhelp.com/cgi-bin/validate.c...s&input=yes

That's because of the CSS error on line 26.
http://jigsaw.w3.org/css-validator/validat....com/%7Eskylark

Put the CDATA, coded as Darin told you to, at the beginning of your CSS. Take Darin's exemple of ccoding for javascript, the same goes for CSS.

BTW, you have two BODY declarations in your CSS. And, you need to start your CSS declarations with the @import.
See http://www.w3.org/TR/CSS21/cascade.html#at-import.

sugarv
QUOTE(Frederiek @ Dec 18 2008, 04:24 PM) *

You still have one HTML error on line 56 for the ending comment.
http://www.htmlhelp.com/cgi-bin/validate.c...s&input=yes

That's because of the CSS error on line 26.
http://jigsaw.w3.org/css-validator/validat....com/%7Eskylark

Put the CDATA, coded as Darin told you to, at the beginning of your CSS. Take Darin's exemple of ccoding for javascript, the same goes for CSS.

BTW, you have two BODY declarations in your CSS. And, you need to start your CSS declarations with the @import.
See http://www.w3.org/TR/CSS21/cascade.html#at-import.



So I need to remove one ccs and another code ccs? I did put the CDATA already..not sure if it's in correct place.

And where do I need to put this-- > <script src="filename.js" type="text/javascript"></script>. What do I need to do about ccs declaration. I want to have my page validate xhtml strict 1.0

Looking for help again. Thanks for being patient.
sugarv
This is my page http://www.codexed.com/~skylark

This is just some part of my my code. (on another layout that I've tried) Did I put everything to where they should be? I validated the page using part of this code and I get valid Transitional.. but I wanted Xhtml strict.


<style type="text/css">

/* <![CDATA[ */

@import "all.css"; /* just some basic formatting, no layout stuff */

body {
margin:0px 0px 0px 0px;
}

#leftcontent {
float:left;
width:67%;
background:#ccccff;
border-right:2px solid #ffccff;
border-bottom:2px solid #ffccff;
margin-right:15px;
padding-bottom:20px;
}

#rightcontent {
}

p,h1,pre {
margin:0px 30px 10px 30px;
}

h1 {
font-size:14px;
padding-top:10px;
}

#rightcontent p {
font-size:12px;
margin-left:0px;
}
/* ]]> */
</style>
</head>


<script src="filename.js" type="text/javascript"></script>

<body>
<div id="leftcontent">
<h1><a href="http://www.codexed.com/~skylark">Skylark</a></h1>
<hr />

<h1>[title]</h1>
<h1>[time "%A, %B %d, %Y @ %H:%M %p"]</h1>
<pre>

</pre>

<p>[body]</p>


This was the previous... and when I validate this using this one.... my xhtml strict 1.0 has error which was pointed at already. I need to remove the CCS?


<style type="text/css">
Body {font-family : Verdana, Arial, Helvetica, Sans-Serif; background-color : #ffccff; color : #000000; font-size : 10pt;}

A:link {color : #9966cc; font-weight : bold; text-decoration : none; background : none;}

A:active {color : #800080; font-weight : bold; text-decoration : none; background : none;}

A:visited {color : #FF0000; font-weight : bold; text-decoration : none; background : none;}

A:hover {color : #000000; font-weight : bold; text-decoration : underline; background : none;}
[CDATA[
@import "all.css"; /* just some basic formatting, no layout stuff */

body {
margin:0px 0px 0px 0px;
}

#leftcontent {
float:left;
width:67%;
background:#ccccff;
border-right:2px solid #ffccff;
border-bottom:2px solid #ffccff;
margin-right:15px;
padding-bottom:20px;
}

#rightcontent {
}

p,h1,pre {
margin:0px 30px 10px 30px;
}

h1 {
font-size:14px;
padding-top:10px;
}

#rightcontent p {
font-size:12px;
margin-left:0px;
}
/*]]>*/
</style>
</head>
<body>
<div id="leftcontent">
<h1><a href="http://www.codexed.com/~skylark">Skylark</a></h1>
<hr />

<h1>[title]</h1>
<h1>[time "%A, %B %d, %Y @ %H:%M %p"]</h1>
<pre>

</pre>

<p>[body]</p>

Thanks to whoever's going to respond and help once more.


Frederiek
In the page at the url you posted, I see:

<style type="text/css">
/*some CSS declarations*/
[CDATA[
@import...
/*more CSS declarations*/
/*]]>*/
</style>

Obviously, the CDATA is wrongly coded and in the wrong place here.

The code snippit you posted above, seems ok to me.
Just try to validate the page that contains that code, in both the HTML and CSS validators.

Read around the HTML reference and CSS reference on this site (links to both on this page), to get a clear understanding.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.