Hi,
New to this; apologies if this is posted incorrectly or missing important info. Also, sorry if the code is scrambled.
I'm using ESRI ArcGIS to create a web map with html popups; the popups are based on XSL templates provided by ESRI.
When I export my data to .kmz and view in Google Maps, the popup frames look perfect in firefox, but are missing the top and left outside borders in IE.
Fixes?
THANKS VERY MUCH
Here's the template:
Code:<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:template match="/"> <html> <body leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0"> <font face="Arial"> <xsl:variable name="nameCol" select="FieldsDoc/Fields/Field/FieldName"/> <table border="1" width="300" cellpadding="5" cellspacing="0"> <tr bgcolor="#9CBCE2"> <xsl:if test="$nameCol"> <th width="50%" align="left">Field Name</th> </xsl:if> <th width="50%" align="left">Field Value</th> </tr> <xsl:for-each select="FieldsDoc/Fields/Field"> <tr> <xsl:if test="(position() +1) mod 2"><xsl:attribute name="bgcolor">#D4E4F3</xsl:attribute></xsl:if> <xsl:if test="$nameCol"> <td><xsl:value-of select="FieldName"/></td> </xsl:if> <td> <xsl:choose> <xsl:when test="FieldValue[starts-with(., 'www.')]"> <a target="_blank"><xsl:attribute name="href">http://<xsl:value-of select="FieldValue"/> </xsl:attribute><xsl:value-of select="FieldValue"/> </a> </xsl:when> <xsl:when test="FieldValue[starts-with(., 'http:')]"> <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="FieldValue"/> </xsl:attribute><xsl:value-of select="FieldValue"/> </a> </xsl:when> <xsl:when test="FieldValue[starts-with(., 'https:')]"> <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="FieldValue"/> </xsl:attribute><xsl:value-of select="FieldValue"/> </a> </xsl:when> <xsl:when test="FieldValue[starts-with(., '\\')]"> <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="FieldValue"/> </xsl:attribute><xsl:value-of select="FieldValue"/> </a> </xsl:when> <xsl:when test="FieldValue[starts-with(., '<img ')]"> <xsl:value-of select="FieldValue" disable-output-escaping="yes" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="FieldValue"/> </xsl:otherwise> </xsl:choose> </td> </tr> </xsl:for-each> </table> </font> </body> </html> </xsl:template> </xsl:stylesheet>


Reply With Quote

Bookmarks