<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="advice.css" type="text/css"/>
    </head>
    <body>
        <h1>XML files in eXist</h1>
        <h2>Stored HTML files in eXist</h2>
        <p>The file needs a namespace to be defined in the html tag to display correctly: <br/>
            <code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;</code>
            <a href="HTMLdocs.html">This</a> file is a case in point.
         But this stil doesnt work in IE???
</p>
        <h2>Stored KML files in eXist</h2>
        <p>kml files saved from Google Earth have the default namespace set appropriately:
<br/>
            <code>&lt;kml xmlns="http://earth.google.com/kml/2.0"&gt;</code>
e.g. <a href="UWE Bristol.kml">UWE campuses</a>
            <br/>
However this isnt enough to cause a browser to open the file with GoogleEarth ( ?? )</p>
        <p> One approach is to explicitly set the MIME type explicitly via an XQuery script which defines 
the type in the serialisation parameters:
<br/>
            <code>declare option exist:serialize  "method=xhtml media-type=application/vnd.google-earth.kml+xml";</code>
            <br/>
The script merely copies the kml document:
<code>doc('/db/advice/BristolPlaces.kml')</code>
            <a href="getKml.xql">UWE Bristol</a>
        </p>
    </body>
</html>
