Entra

View Full Version : [XHTML]Piccolo problemini di validazione


D4rkAng3l
16-10-2007, 22:35
Ciao,
ho un problemino a validare un documento XHTML con la DTD Transitional.

Il validatore mi dā questo messaggio:

"Potential Issues

The following missing or conflicting information caused the validator to perform guesswork prior to validation. If the guess or fallback is incorrect, it may make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.

1.

Warning DOCTYPE Override in effect!

The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.0 Transitional" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.

Congratulations

The uploaded document "index.html" was checked and found to be tentatively valid XHTML 1.0 Transitional. This means that with the use of some fallback or override mechanism, we successfully performed a formal validation using an SGML or XML Parser. In other words, the document would validate as XHTML 1.0 Transitional if you changed the markup to match the changes we have performed automatically, but it will not be valid until you make these changes.
Validating CSS Style Sheets

If you use CSS in your document, you can check it for validity using the W3C CSS Validation Service. "

Che significa? cos'č che non vā?

Il mio codice XHTML č il seguente:


<!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="it" lang="it">
<head>
<title>Layout 38</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"></meta>
<meta name="generator" content="HAPedit 3.1"></meta>
<link href="layout.css" rel="stylesheet" type="text/css" title="default" />

<script type="text/javascript" src="sdmenu/sdmenu.js">
/***********************************************
* Slashdot Menu script- By DimX
* Submitted to Dynamic Drive DHTML code library: http://www.dynamicdrive.com
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<script type="text/javascript">
// <![CDATA[
var myMenu;
window.onload = function() {
myMenu = new SDMenu("my_menu");
myMenu.init();
};
// ]]>
</script>

</head>
<body>
<div id="container">

<div id="header">
<div id="logo"></div>
<div id="foto"></div>

</div>

<div id="breadcrumb">
<a href="#">Home</a> <span>&gt;</span>
<a href="#">Chi Siamo</a> <span>&gt;</span>
<a href="#">Corsi Sub</a> <span>&gt;</span>
<a href="#">Photo Gallery</a> <span>&gt;</span>
<a href="#">Links</a> <span>&gt;</span>
<a href="#">Contatti</a> <span>&gt;</span>
<em>Navigazione Rapida</em>
</div>

<div id="wrapper">
<div id="content">
<p><strong>1) Content here.</strong> column long long column very long fill fill fill long text text column text silly very make long very fill silly make make long make text fill very long text column silly silly very column long very column filler fill long make filler long silly very long silly silly silly long filler make column filler make silly long long fill very.</p>
<p>very make make fill silly long long filler column long make silly silly column filler fill fill very filler text fill filler column make fill make text very make make very fill fill long make very filler column very long very filler silly very make filler silly make make column column </p>
<p>fill long make long text very make long fill column make text very silly column filler silly text fill text filler filler filler make make make make text filler fill column filler make silly make text text fill make very filler column very </p>
<p>column text long column make silly long text filler silly very very very long filler fill very fill silly very make make filler text filler text make silly text text long fill fill make text fill long text very silly long long filler filler fill silly long make column make silly long column long make very </p>
</div>
</div>

<div id="colonnasx">
<div id="my_menu" class="sdmenu">

<div>
<span>Home</span>
</div>

<div class="collapsed">
<span>Chi Siamo</span>
<a href="http://www.dynamicdrive.com/link.htm">Staff</a>
<a href="http://www.dynamicdrive.com/link.htm">Dove Siamo</a>
<a href="http://www.dynamicdrive.com/link.htm">Il Nostro Diving</a>
</div>

<div class="collapsed">
<span>Corsi Sub</span>
<a href="http://www.dynamicdrive.com/link.htm">Open Water Diver</a>
<a href="http://www.dynamicdrive.com/link.htm">Advanced OWD</a>
<a href="http://www.dynamicdrive.com/resources/">EFR</a>
<a href="http://www.dynamicdrive.com/resources/">Rescue Diver</a>
<a href="http://www.dynamicdrive.com/resources/">Specialitā</a>
<a href="http://www.dynamicdrive.com/resources/">MasterScubaDiver</a>
<a href="http://www.dynamicdrive.com/resources/">DiveMaster</a>
<a href="http://www.dynamicdrive.com/resources/">HSA Open Water Diver</a>
<a href="http://www.dynamicdrive.com/resources/">Riabilitazione in acqua</a>
<a href="http://www.dynamicdrive.com/resources/">Nuoto Diversamente Abili</a>
<a href="http://www.dynamicdrive.com/resources/">Assistente Bagnanti FIN</a>
</div>

<div class="collapsed">
<span>Photo Gallery</span>
<a href="?foo=bar">Punti d'Immersione</a>
<a href="index.html">Viaggi</a>
<a href="index.html">Video</a>
<a href="index.html?query">Eventi</a>
<a href="index.html?query">Corsi</a>
</div>

<div class="collapsed">
<span>Links</span>
<a href="?foo=bar">HSA Italia</a>
<a href="index.html">A.S.S.O.</a>
<a href="index.html">Lazio Handicap</a>
<a href="index.html?query">Blu Production</a>
<a href="index.html?query">La Placa</a>
<a href="index.html?query">Juventus Nuoto</a>
</div>

<div>
<span>Contatti</span>
</div>

</div>

<div id="calendario">
<applet code="ccalendar.class" name="ccalendar" archive="ccalendar/ccalendar.jar" id="cal" height="160" width="150"><param name="fdw" value="1"></param><param name="color_fond" value="28457F"></param><param name="color_full" value="FF0000"></param><param name="color_case" value="70B9FD"></param><param name="color_Comment" value="61A9DD"></param><param name="color_empty" value="3C5993"></param><param name="field" value="DateField"></param><param name="form" value="DateForm"></param><param name="day1" value="Domenica"></param><param name="day2" value="Lunedi"></param><param name="day3" value="Martedi"></param><param name="day4" value="Mercoledi"></param><param name="day5" value="Giovedi"></param><param name="day6" value="Venerdi"></param><param name="day7" value="Sabato"></param><param name="month1" value="Gennaio"></param><param name="month2" value="Febbraio"></param><param name="month3" value="Marzo"></param><param name="month4" value="Aprile"></param><param name="month5" value="Maggio"></param><param name="month6" value="Giugno"></param><param name="month7" value="Luglio"></param><param name="month8" value="Agosto"></param><param name="month9" value="Settembre"></param><param name="month10" value="Ottobre"></param><param name="month11" value="Novembre"></param><param name="month12" value="Dicembre"></param><param name="etarget" value="_new"></param><param name="event_file" value="./ccalendar/example.txt"></param><param name="sched_file" value="./schedule.txt"></param></applet>

</div>
</div>


<div id="extra">
<img src="img/marchi/padi.jpg" id="first" alt="Logo Padi"></img>
<img src="img/marchi/nadd.jpg" alt="Logo NADD"></img>
<img src="img/marchi/awarelogo.jpg" alt="Logo Project Aware"></img>
<img src="img/marchi/hsaijpg.jpg" alt="Logo Hsai"></img>
</div>

<div id="footer"><p>Here it goes the footer</p></div>

</div>
</body>
</html>


Grazie
Andrea

damxxx
17-10-2007, 11:09
Da quello ke mi sembra di capire č un problema con la dikiarazione del DOCTYPE.
Quando hai fatto la validazione ha indicato esplicitamente il DOCTYPE?
vedi se nel validatore del w3 al posto di indicare il DOCTYPE utilizzato imposti l'auto-detect cosa succede