# XSLT and Google Maps problem in FF

**URL:** <https://forum.kirupa.com/t/xslt-and-google-maps-problem-in-ff/218992>\
**Category:** Uncategorized\
**Created:** [March 13, 2007, 12:31am UTC](https://forum.kirupa.com/t/xslt-and-google-maps-problem-in-ff/218992 "2007-03-13T00:31:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommyhaych](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tommyhaych](https://forum.kirupa.com/u/tommyhaych)\
**Post date:** [March 13, 2007, 12:31am UTC](https://forum.kirupa.com/t/xslt-and-google-maps-problem-in-ff/218992/1 "2007-03-13T00:31:12Z")

</div>

Hey all.

I’m just wondering if you know of any possible reason why a google map won’t load when put in an XSLT stylesheet in Firefox. It works in IE fine.

Additionally, using the simple google maps hello world page in HTML works fine in both browsers.

Has anyone had any problem with this in the past at all? I mean not just with Google Maps, but with firefox and XSLT in general?

I’ll post my code:

```auto
<?xml version="1.0" encoding="ISO-8859-1"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                 xmlns="http://www.w3.org/1999/xhtml">

<xsl:template match="/">  

<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
     

    <title>Google Maps JavaScript API Example</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAArwtl8H-0vkbKUJQSKii7aBSmvnqj_jvWX9jzbAfFZqVyU1JN7hRy418MpVHZx_OGhzqNA5ya6la-ZQ"
            type="text/javascript"></script>
    <script type="text/javascript">
    <![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {

        var map = new GMap2(document.getElementById("map"));

        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
      }
    }

   ]]>
   </script> 
  </head>
  <body onLoad="load()" onUnload="GUnload()"> 
  hello
    <div id="map" style="width:500px; height:300px;"></div>
    <br />boo
  </body>
</html>

 </xsl:template>
 </xsl:stylesheet>

```

Also, the link to the uploaded version is at [http://www.tommyhaych.co.uk/project/viewShow.php](http://www.tommyhaych.co.uk/project/viewShow.php)

I’d be appreciative if anyone could shed light on this.

Thanks,  
Tom
