Xml, Html e standard w3c
-
Ciao a tutti, ho standardizzato il sito, scritto in HTML 4.01, dell'azienda presso cui lavoro, però c'è una pagina che mi da problemi; in particolare, questa pagina contiene una tabella scritta in word per cui escono fuori dei tag strani, probabilmente in xml, che mi danno problemi per la validazione w3c. Il DTD che ho usato è:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">per rendere valida questa pagina contenente XML, che devo fare? C'è un DTD particolare da usare? Ho provato ad usare un DTD dedicato a XML però gli errori aumentavano....
Grazie mille. -
-
-
Ciao ragazzi, grazie per la vostra risposta. Vi riporto una parte della pagina in questione:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document"><link rel="File-List" href="mappa_file/filelist.xml">
<!--[if !mso]>
<style>
v:* { behavior: url(#default#VML) }
o:* { behavior: url(#default#VML) }
.shape { behavior: url(#default#VML) }
</style>
<![endif]--><!--[if gte mso 9]>
<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--></head>
<body style="margin-top :0; margin-left :0" bgcolor="#405CA2">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; bordercolor :#111111; height :199" width="776" >
<tr>
<td width="100%" height="199"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; bordercolor :#FFFFFF" width="100%"> <tr> <td width="4%" style="background:url('images/latosx.gif'); "></td> <td width="70%" style="background :url('images/corpo.gif'); " valign="top"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; bordercolor :#FFFFFF; height :1" width="100%" > <tr> <td width="50%" height="1"> <font face="Verdana" size="2" color="#405CA2"> <%=datamese%></font></td> <td width="50%" height="1"> <p align="right"><font size="2" color="#405CA2"> **<span style="font-family: Verdana">Mappa del Sito</span>**</font></td> </tr> <tr> <td width="100%" colspan="2" height="1"> <hr style="color :#C0C0C0" size="1"> <p align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; bordercolor :#111111" width="100%"> <tr> <td width="100%"><!--[if gte vml 1]><v:rect id="_x0000_s1025"alt="" style='position:absolute;left:33pt;top:69.75pt;width:388.5pt;height:32.25pt;
z-index:1'>
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<p align="left"><font face="Verdana" size="2" color="#000080">
Home</font></td>
</tr>
</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:43px;top:92px;width:524px;height:49px'>mappa_file/image001.gif</span><![endif]></p>
</p>
<!--[if gte vml 1]><v:line
id="_x0000_s1061" style='position:absolute;left:0;text-align:left;top:0;
flip:x;z-index:3' from="259.5pt,123pt" to="279pt,123pt">
<v:stroke endarrow="block"/>
</v:line><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:3;left:344px;top:158px;width:29px;height:12px'>mappa_file/image002.gif</span><![endif]></p><!--[if gte vml 1]><v:rect
id="_x0000_s1026" alt="" style='position:absolute;left:44.25pt;top:184.5pt;
width:213.75pt;height:18pt;z-index:1'>
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<p align="left"><font face="Verdana" size="2" color="#000080">
Prodotti</font></td>
</tr>
</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:58px;top:245px;width:291px;height:30px'>mappa_file/image003.gif</span><![endif]></p><!--[if gte vml 1]><v:rect
id="_x0000_s1027" alt="" style='position:absolute;left:44.25pt;top:137.25pt;
width:214.5pt;height:18pt;z-index:1'>
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<p align="left"><font face="Verdana" size="2" color="#000080">
Dove Siamo</font></td>
</tr>
</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:58px;top:182px;width:292px;height:30px'>mappa_file/image004.gif</span><![endif]></p><!--[if gte vml 1]><v:rect
id="_x0000_s1030" alt="" style='position:absolute;left:45pt;top:321pt;width:214.5pt;
height:18pt;z-index:1'>
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<p align="left"><font face="Verdana" size="2" color="#000080">
Area Licenze</font></td>
</tr>
</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:59px;top:427px;width:292px;height:30px'>mappa_file/image005.gif</span><![endif]></p><!--[if gte vml 1]><v:rect
id="_x0000_s1028" alt="" style='position:absolute;left:44.25pt;top:113.25pt;
width:214.5pt;height:18pt;z-index:1'>
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<p align="left"><font face="Verdana" size="2" color="#000080">
Chi Siamo</font></td>
</tr>
</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:58px;top:150px;width:292px;height:30px'>mappa_file/image006.gif</span><![endif]></p><!--[if gte vml 1]><v:rect
id="_x0000_s1033" alt="" style='position:absolute;left:59.25pt;top:161.25pt;
width:88.5pt;height:18pt;z-index:1'>
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center">
<p align="left"><font face="Verdana" size="2" color="#000080">
Sede</font></td>
</tr>
</table>
</v:textbox>
</v:rect><![endif]-->Se volessi riscriverla da 0, che strumento mi converrebbe usare? Ho notato che anche il Frontpage aggiunge cose strane e non ho altri editor.
Grazie mille.
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi
