<?xml version="1.0" encoding="UTF-8"?>

<!--
    ======================================================
    This file lists all mime types known to eXist.      

    When storing a document with the Java client, the type 
    of the resource is looked up here. A resource will be 
    stored as an XML or a binary resource, depending on the 
    "type" attribute of the corresponding mime-type entry.

    In MimeTable.java mime-types.xml is first searched in 
    directory pointed by property "home.exist", 
    and then as a classpath resource in org/exist/util .
    ======================================================= 
-->

<mime-types>

    <!-- Mime types stored as XML -->
    <mime-type name="text/xml" type="xml">
        <description>XML document</description>
        <extensions>.xml,.xsl,.xslt,.xsd,.rng,.mods,.xmp,.xmi,.xconf,.xmap,.xsp,.wsdl,.x3d,.rdf,.owl,.dbx,.tei,.xces,.ead,.xqx,.xform</extensions>
    </mime-type>
    <mime-type name="application/xml" type="xml">
        <description>XML document</description>
        <extensions>.xml</extensions>
    </mime-type>
    <mime-type name="application/rdf+xml" type="xml">
        <description>RDF document</description>
        <extensions>.rdf,.rdfs</extensions>
    </mime-type>
    <mime-type name="application/xhtml+xml" type="xml">
        <description>XHTML document</description>
        <extensions>.xhtml,.xht</extensions>
    </mime-type>
    <mime-type name="text/html" type="xml">
        <description>HTML document</description>
        <extensions>.html,.htm</extensions>
    </mime-type>
    <mime-type name="application/atom+xml" type="xml">
        <description>Atom Feed Document</description>
        <extensions>.atom</extensions>
    </mime-type>
    <mime-type name="image/svg+xml" type="xml">
        <description>SVG image</description>
        <extensions>.svg,.svgz</extensions>
    </mime-type>
    
    <!-- Binary mime types -->   
    <mime-type name="application/xquery" type="binary">
        <description>XQuery script</description>
        <extensions>.xq,.xql,.xqm,.xquery,.xqy,.xqws</extensions>
    </mime-type>
    <mime-type name="application/octet-stream" type="binary">
        <description>Generic binary stream</description>
        <extensions>.jar,.exe,.dll,.o</extensions>
    </mime-type>

    <!-- TODO : for OpenOffice.org and other Zip files: add a new type="archive",
         that will unzip and store as a collection -->
         
    <mime-type name="application/zip" type="binary">
        <description>ZIP archive</description>
        <extensions>.zip</extensions>
    </mime-type>


    <!-- OpenOffice.org - Open Document -->
    <mime-type name="application/vnd.oasis.opendocument.text" type="binary">
    	<description>OpenOffice.org Text Document</description>
    	<extensions>.odt</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.presentation" type="binary">
    	<description>OpenOffice.org Presentation</description>
    	<extensions>.odp</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.spreadsheet" type="binary">
    	<description>OpenOffice.org spreadsheet</description>
    	<extensions>.ods</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.base" type="binary">
    	<description>OpenOffice.org Data Base</description>
    	<extensions>.odb</extensions>
    </mime-type>

    <mime-type name="application/vnd.oasis.opendocument.graphics" type="binary">
    	<description>OpenOffice.org Drawing</description>
    	<extensions>.odg</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.chart" type="binary">
    	<description>OpenOffice.org Diagram Chart</description>
    	<extensions>.odc</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.formula" type="binary">
    	<description>OpenOffice.org Formula</description>
    	<extensions>.odf</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.database" type="binary">
    	<description>OpenOffice.org Data Base</description>
    	<extensions>.odb</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.image" type="binary">
    	<description>OpenOffice.org Image</description>
    	<extensions>.odi</extensions>
    </mime-type>

    <mime-type name="application/vnd.oasis.opendocument.text-master" type="binary">
    	<description>OpenOffice.org Main Document</description>
    	<extensions>.odm</extensions>
    </mime-type>
    
    <!-- OpenDocument models -->
    <mime-type name="application/vnd.oasis.opendocument.text-template" type="binary">
    	<description>OpenOffice.org formatted Text model</description>
    	<extensions>.ott</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.spreadsheet-template" type="binary">
    	<description>OpenOffice.org spreadsheet model</description>
    	<extensions>.ots</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.presentation-template" type="binary">
    	<description>OpenOffice.org Presentation model</description>
    	<extensions>.otp</extensions>
    </mime-type>
    <mime-type name="application/vnd.oasis.opendocument.graphics-template" type="binary">
    	<description>OpenOffice.org Drawing model</description>
    	<extensions>.otg</extensions>
    </mime-type>

    <!-- OpenOffice.org - versions 1.X -->
    <mime-type name="application/vnd.sun.xml.writer" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.sxw</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.writer.template" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.stw</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.writer.global" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.sxg</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.calc" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.sxc</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.calc.template" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.stc</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.impress" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.sxi</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.impress.template" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.sti</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.draw" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.sxd</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.draw.template" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.std</extensions>
    </mime-type>
    <mime-type name="application/vnd.sun.xml.math" type="binary">
    	<description>OpenOffice.org Document</description>
    	<extensions>.sxm</extensions>
    </mime-type>

    <!-- Microsoft Office  -->
    <mime-type name="application/msword" type="binary">
    	<description>Microsoft Word Document</description>
    	<extensions>.doc</extensions>
    </mime-type>
    <mime-type name="application/vnd.ms-powerpoint" type="binary">
    	<description>Microsoft Powerpoint Document</description>
    	<extensions>.ppt</extensions>
    </mime-type>
    <mime-type name="application/vnd.ms-excel" type="binary">
    	<description>Microsoft Excel Document</description>
    	<extensions>.xls</extensions>
    </mime-type>
    <mime-type name="application/vnd.visio" type="binary">
        <description>Microsoft Visio Document</description>
        <extensions>.vsd</extensions>
    </mime-type>

    <mime-type name="text/plain" type="binary">
        <description>Plain text</description>
        <extensions>.txt,.text,.java,.dtd,.rnc</extensions>
    </mime-type>
    <mime-type name="text/css" type="binary">
        <description>CSS stylesheet</description>
        <extensions>.css</extensions>
    </mime-type>

    <!-- Bitmaps -->
    <mime-type name="image/png" type="binary">
        <description>PNG image</description>
        <extensions>.png</extensions>
    </mime-type>
    <mime-type name="image/gif" type="binary">
        <description>GIF image</description>
        <extensions>.gif</extensions>
    </mime-type>
    <mime-type name="image/jpeg" type="binary">
        <description>JPEG image</description>
        <extensions>.jpg,.jpeg</extensions>
    </mime-type>
    <mime-type name="image/x-portable-bitmap" type="binary">
        <description>PBM Bitmap Format</description>
        <extensions>.pbm</extensions>
    </mime-type>
    <mime-type name="image/bmp" type="binary">
        <description>Windows Bitmap Image</description>
        <extensions>.bmp</extensions>
    </mime-type>
    <mime-type name="image/tiff" type="binary">
        <description>Tag Image File Format</description>
        <extensions>.tif</extensions>
    </mime-type>
    <mime-type name="image/x-xbitmap" type="binary">
        <description>X Bitmap Graphic</description>
        <extensions>.xbm</extensions>
    </mime-type>

    <!-- Misc -->
    <mime-type name="application/pdf" type="binary">
        <description>PDF (Adobe)</description>
        <extensions>.pdf</extensions>
    </mime-type>
    <mime-type name="application/postscript" type="binary">
        <description>PostScript Document</description>
        <extensions>.eps,.ps</extensions>
    </mime-type>
    <mime-type name="application/x-javascript" type="binary">
        <description>JavaScript</description>
        <extensions>.js</extensions>
    </mime-type>
    
</mime-types>
