Strona 1 z 1

[XHTML] Validator: Błąd z id w adresie

: ndz mar 12, 2006 7:46 pm
autor: Balas
Error Line 59 column 1037: reference to entity "id" for which no system identifier could be generated.

...otter"><a href="index.php?mod=page&id=11" title="Czytaj calosc">wiecej...</a>
Takie cos mi wypluwa validator. O co chodzi ?

A tu kod (kod generowany przez skrypt, chcialem sprawdzic czy sie validuje a tu zonk :( ):

Kod: Zaznacz cały

<!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">
<head>
<title>CMS</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
  margin: 0px;
  padding: 0px;
  font-family: Arial, Helvetica, sans-serif;
}

.main_body {
  padding: 6px;
  margin-bottom: 10px;
  border: 1px solid black;
  width: 500px;
}
.title {
  font-size: 12px;
  font-weight: bold;
}
.title_small {
  font-size: 10px;
  font-weight: bold;
  color: #999999;
}
.text_body {
  font-size: 12px;
  color: #333333;
  padding-top: 10px;
}
.main_body_fotter a{
  text-decoration: none;
  font-size: 12px;
  color:#666666;
}
.main_body_fotter a:hover{
  text-decoration: underline;
  font-size: 12px;
  color:#999999;
}
.pager_nav{
  color:#000000;
  border: 1px solid #CCCCCC;
  font-size: 12px;
  padding: 2px;
  text-decoration: none;
}
.pager_nav a{
  color:#666666;
  font-size: 12px;
  text-decoration: none;
}

</style>
</head>
<body>
<div class="main_body">
<span class="title">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</span>
<br />
<span class="title_small">@Balas, 2006-03-12</span>
<br />
<div class="text_body">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam dui odio, ultricies at, aliquet eget, elementum ac, neque. Curabitur urna nibh, fermentum ac, vulputate vel, auctor vel, mauris. Praesent mattis. Etiam quis urna et justo consequat viverra. Praesent euismod imperdiet nunc. Cras ante. Suspendisse erat. In convallis. Curabitur sagittis. Suspendisse potenti. Praesent dapibus, dolor vitae mollis viverra, tellus tellus consequat augue, eu fringilla nulla lectus at diam.</div>
<br />
<span class="main_body_fotter">
<a href="index.php?mod=page&id=12" title="Czytaj calosc">wiecej...</a>
</span>
</div>

<div class="main_body">
<span class="title">To powinno byc wyswietlone</span>
<br />
<span class="title_small">@Balas, 2006-03-12</span>
<br />
<div class="text_body">xxx</div>
<br />
<span class="main_body_fotter">
<a href="index.php?mod=page&id=11" title="Czytaj calosc">wiecej...</a>
</span>
</div>
<span class="pager_nav"><strong>1</strong></span> <span class="pager_nav"><a href="?page_id=2">2</a></span> <span class="pager_nav"><a href="?page_id=3">3</a></span> ... <span class="pager_nav"><a href="?page_id=2">></a></span> <span class="pager_nav"><a href="?page_id=6">>|</a></span> 

</body>
</html>

Re: [XHTML] Validator: Błąd z id w adresie

: ndz mar 12, 2006 7:58 pm
autor: Stig
Znak & należy zastąpić sekcją &. Przykład:

Kod: Zaznacz cały

<a href="index.php?mod=page&id=12" title="Czytaj calosc">wiecej...</a>
Temat był już poruszany w topicu "[Problem] Validator: błąd przy użyciu & w adresie".

Re: [XHTML] Validator: Błąd z id w adresie

: ndz mar 12, 2006 8:07 pm
autor: Balas
Dzieki, myslalem ze to cos z ID i pod tym szukalem :]