
Originally Posted by
ccoddington
Just in case anyone else is looking for similar functionality down the road, we implemented the following code in several of our Entity XML packages to achieve our desired results, we can now embed href's in entity names and they will be handled correctly.
Code:
<xsl:choose>
<xsl:when test="contains($scName,'href') = 'true'">
<a href="{substring-before(substring-after($scName,'href="'),'">')}">
<xsl:value-of select="aspdnsf:LookupEntityImage(EntityID, $EntityName, 'icon', 0, $AltText)" disable-output-escaping="yes" />
</a>
</xsl:when>
<xsl:otherwise>
<a href="{$URL}">
<xsl:value-of select="aspdnsf:LookupEntityImage(EntityID, $EntityName, 'icon', 0, $AltText)" disable-output-escaping="yes" />
</a>
</xsl:otherwise>
</xsl:choose>
Thanks for the help Chris!