0 Replies Latest reply on Apr 5, 2010 12:06 PM by Mr_Kirkwood

    Embed video code not working in ARC for HTML PopUp tool

    Mr_Kirkwood
      I am having trouble with the XSL template and some simple code. I cannot get the video to show up in the HTML popup window inside arc using the template or using a simple code. I have a simple point feature. The feature has a column named VIDEO with a link in the attribute table "http://www.youtube.com/watch?v=1pkUFKKhAZM"

      here is the simple 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>
        <xsl:variable name="nameCol" select="FieldsDoc/Fields/Field/FieldName"/>
        <table border="1" width="300" cellpadding="5" cellspacing="0">
        <xsl:variable name="index" select="1"/>
        <xsl:for-each select="FieldsDoc/Fields/Field">
        <xsl:if test="FieldName[starts-with(., 'VIDEO')]">
        <xsl:attribute name="bgcolor">#5757FF</xsl:attribute>
      <tr>
        <xsl:if test="(position() +1) mod 2">
        <xsl:attribute name="bgcolor">#5757FF</xsl:attribute>
        </xsl:if>
      <td>
      <xsl:choose>
        <xsl:when test="FieldName[starts-with(., 'VIDEO')]">
        <xsl:variable name="videoURL" select="FieldValue"/>
      <object>
        <param name="movie" value="{$videoURL}" wmode="transparent" ></param>
        <embed src="{$videoURL}" type="application/x-shockwave-flash"  width="480" height="385"></embed>
      </object>
        </xsl:when>
      </xsl:choose>
      </td>
      </tr>
      </xsl:if>
      </xsl:for-each>
      </table>
      </body>
      </html>
      </xsl:template>
      </xsl:stylesheet>

      The other code can be found in at C:\Program Files\ArcGIS\Styles\HTMLPopup\EmbedVideo.xsl

      any ideas?