You are currently reviewing an older revision of this page.
While this is valid link, the physical location of the JPG is not included in the property value. A quick and easy solution is to load the features into the Data Browser and use the Find and Replace function to append the shared folder to the value.
<!-- Template to make feature property with http in value a hyperlink -->
<xsl:template match="*">
<xsl:param name="tag"/>
<xsl:variable name="PropName">
<xsl:choose>
<xsl:when test="@displayName">
<xsl:value-of select="@displayName"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="name()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="PropValue">
<xsl:value-of select="."/>
<xsl:element name="tr">
<xsl:attribute name="{$tag}">yes</xsl:attribute>
<xsl:attribute name="class">r<xsl:value-of select="position() mod 2"/></xsl:attribute>
<xsl:attribute name="style">display:block;</xsl:attribute>
<xsl:when test="contains ($PropValue, 'http')">
<td><xsl:value-of select="name()"/></td>
<td><a target="_blank"><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></a></td>
<td><xsl:value-of select="$PropName"/></td>
<td><xsl:value-of select="."/></td>
</xsl:element>
</xsl:template>
The results of this code can be seen in the Web property: