=== modified file 'sites/all/modules/xmlsitemap/xmlsitemap.xmlsitemap.inc'
--- xmlsitemap.xmlsitemap.inc	2011-03-31 03:13:55 +0000
+++ xmlsitemap.xmlsitemap.inc	2011-05-16 00:27:59 +0000
@@ -54,7 +54,13 @@ class XMLSitemapWriter extends XMLWriter
    * Add the XML stylesheet to the XML page.
    */
   public function writeXSL() {
-    $this->writePi('xml-stylesheet', 'type="text/xsl" href="' . url('sitemap.xsl') . '"');
+    $o = array();
+    if (variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE) == LANGUAGE_NEGOTIATION_DOMAIN) {
+      // language_url_rewrite() will force an absolute URL, unless we pass an
+      // object that's specifically hacked to circumvent its behavior.
+      $o['language'] = (object) array('domain' => '');
+    }
+    $this->writePi('xml-stylesheet', 'type="text/xsl" href="' . url('sitemap.xsl', $o) . '"');
     $this->writeRaw(PHP_EOL);
   }
 

