title: KML HREF must always be absolute?
body: <p>From Google Earth I fetch my KML file from - say - address <a href="http://myaddress.com:8080" rel="nofollow">http://myaddress.com:8080</a></p>
  
  <p>In the KML file I have several styles defined with an HREF for each icon.
  In this HREF I have the name of the icon, and I expect that Google Earth would implicitly fetch this file from the same server address, i.e. at <a href="http://myaddress.com:8080/aircraft.png" rel="nofollow">http://myaddress.com:8080/aircraft.png</a> in the example, unless another address is specified.</p>
  
  <p>Appearent this does not work. I suppose it is interpreted as a local file.</p>
  
  <p>I am now forced to tell my KML server on which address it is advertising itself, and use that address to create an absolute HREF for each icon in each KML file it produces.</p>
  
  <p>How can I prevent using the server address in the KML for HREF-ed icons?</p>
  
  <p>Example KML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"&gt;
      &lt;Document&gt;
          &lt;name&gt;GE View&lt;/name&gt;
          &lt;open&gt;1&lt;/open&gt;
          &lt;Style id="style8"&gt;
              &lt;IconStyle&gt;
                  &lt;scale&gt;1.0&lt;/scale&gt;
                  &lt;heading&gt;0.0&lt;/heading&gt;
                  &lt;Icon&gt;
                      &lt;href&gt;aircraft.png&lt;/href&gt;
                      &lt;refreshInterval&gt;0.0&lt;/refreshInterval&gt;
                      &lt;viewRefreshTime&gt;0.0&lt;/viewRefreshTime&gt;
                      &lt;viewBoundScale&gt;0.0&lt;/viewBoundScale&gt;
                  &lt;/Icon&gt;
              &lt;/IconStyle&gt;
          &lt;/Style&gt;
          &lt;Folder&gt;
              &lt;name&gt;Entities&lt;/name&gt;
              &lt;open&gt;1&lt;/open&gt;
              &lt;Placemark&gt;
                  &lt;name&gt;HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft101&lt;/name&gt;
                  &lt;visibility&gt;1&lt;/visibility&gt;
                  &lt;open&gt;0&lt;/open&gt;
                  &lt;description&gt;HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft101: EntityType=1.2.0.-103.57.0.0&lt;/description&gt;
                  &lt;styleUrl&gt;style8&lt;/styleUrl&gt;
                  &lt;Point&gt;
                      &lt;extrude&gt;1&lt;/extrude&gt;
                      &lt;altitudeMode&gt;relativeToGround&lt;/altitudeMode&gt;
                      &lt;coordinates&gt;-18.00000000000001,53.999999999219824,1000.0000635553151&lt;/coordinates&gt;
                  &lt;/Point&gt;
              &lt;/Placemark&gt;
          &lt;/Folder&gt;
      &lt;/Document&gt;
  &lt;/kml&gt;
  </code></pre>