The remainder of this tutorial will walk you through the steps to turn a property called Link into a clickable hyperlink in the Analyze Results dialog.
The Default.xslt can be customized to change the presentation of the Analyze Results dialog. This will require knowledge of CSS which is a style sheet language used to describe the presentation of HTML elements.
<!-- Template to make feature property called LINK a hyperlink -->
<xsl:template match="*">
<xsl:param name="tag"/>
<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:choose>
<xsl:when test="name()='Link'">
<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></xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="name()"/></td>
<td><xsl:value-of select="."/></td>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>
<!-- 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:variable>
<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:choose>
<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>
</xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="$PropName"/></td>
<td><xsl:value-of select="."/></td>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>