Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    [W3C] problemi con il validatore

    avrei un problema.. quando vado a validare la mia pagina web scritta in xhtml 1.1 il validatore mi dice che la pagina è ok ma c'è "1 warning" ed il mess che riporta è il seguente: Conflict between Mime Type and Document Type

    The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml

    Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:

    If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.
    You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
    If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.


    se vi può essere utile questo è il codice della pagina:
    codice:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
    <head>
    <title>a n g e l o t o s c a n o .net</title>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
    <meta http-equiv="refresh" content="3;url=home/" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="description" content="Il sito WEB ufficiale di Angelo Toscano." />
    <meta name="keywords" content="Angelo, Angelo Toscano, blog, informatica, my personal web site, napoli, pomigliano d'arco, Toscano" />
    <meta name="author" content="Angelo Toscano" />
    <meta name="copyright" content="copyright 2008 Angelo Toscano. Tutti i diritti riservati." />
    <meta name="distribution" content="global" />
    <meta name="rating" content="general" />
    <meta name="robots" content="all" />
    <meta name="revisit-after" content="10 days" />
    <meta name="reply-to" content="info@angelotoscano.net" />
    <link rel="stylesheet" href="css/design.css" media="all" type="text/css" />
    </head>
    <body>
    <div id="outer"> 
      <div id="inner"> 
        <div class="bgtext">a n g e l o t o s c a n o <span class="bgtext-net">.net</span></div>
      </div>
    </div>
    </body>
    </html>
    che cos'è l'errore? come si può rimediare?

  2. #2
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,657
    hai letto il messaggio?

    che estensione ha la tua pagina?

  3. #3
    si ho letto cosa dice.. l'estensione attuale delle mie pagine è .html ma se le modifico in .xhtml quando accedo al sito mi da un errore 403.. come posso risolvere??

  4. #4
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,657
    non saprei... so niente di xml.

    prova a consultare http://www.w3schools.com/xml

  5. #5
    grazie lo stesso, nessuno sa darmi qualche info??

  6. #6
    Sul sito www.xhtml.com sotto la sezione "Serving xhtml as xml" trovi le indicazioni che cerchi.

    Indicare il content-type con il tag meta non server a niente. Devi modificare gli http headers forniti dal tuo web server. Se utilizzi linguaggi lato server, puoi farlo da codice (e sul sito che ti ho dato ci sono degli esempi).

    Ciao
    Sgro - Webmaster, programmazione c# e progettazione database.
    Non si forniscono soluzioni in privato.
    Non si fornisce la "pappa pronta".

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.