W3C home > Mailing lists > Public > www-amaya-dev@w3.org > August 2000

Re: How to let Amaya recognise new mime.types

From: Irene VATTON <Irene.Vatton@inrialpes.fr>
Date: Fri, 18 Aug 2000 09:37:11 +0200
Message-Id: <200008180737.JAA22950@tahiti.inrialpes.fr>
To: Catherine CHAT <Catherine.Chat@via-business.fr>
cc: www-amaya-dev@w3.org
> Hi,
> 
> I configure an Apache server to send a special mime.types when serving
> files with a special extension :
> 	myfile.dchtml is served with "application/amaya" mime.type
> 
> myfile.dchtml are in fact generated html files.
> 
> The goal is to tell every client to launch Amaya when this type of document
> is requested. It works. Because Amaya does not know this special mime.type,
> the document is opened in text mode. Is there a way to let Amaya know that
> these document are in fact HTML documents ? 

Amaya detects that the document is written in html:
1) when the mime-type is text/html
2) when the suffix is (case insensitive) .html, .html.xx, .htm, .htm.xx, 
shtml, jsp, xht, xhtml
3) when the mime-type is text/xml and the document includes the tag <html>
4) when the suffix is xml and the document includes the tag <html>

You can play either on the mime-type or on the suffix.


> Thanks.
> 
> Best regards,
> Catherine.
> --
> Catherine CHAT  - Responsable Technique
> Catherine.Chat@via-business.fr - Tel 01 3963 5737 - Fax 01 3963 5114
> 
> VIA BUSINESS S.A.
> Domaine de Voluceau  - BP 105 - 78153 Le Chesnay cedex - FRANCE
> http://www.via-business.fr
> ---------------------------------------------------------------------
> 

-- 
     Irene.
Received on Friday, 18 August 2000 03:37:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:48:59 GMT