Hyperlink Email
Posted: Wed Oct 26, 2011 11:40 pm
I am a definite noob when it comes to XSL and am trying to assist a co-worker in gaining functionality with her database. My code looks like this:
<td align="left">
<xsl:for-each select="fmrs:resultset/fmrs:record/fmrs:field[@name='Contacts::email']/fmrs:data">
<xsl:if test="position() != 1"><br/></xsl:if>
<xsl:value-of disable-output-escaping="yes" select="fmxslt:break_encode(.)"/>
<xsl:if test=". = ''">
<xsl:text disable-output-escaping="yes"> </xsl:text>
</xsl:if>
</xsl:for-each>
</td>
I'm trying to make it where the email address that appears in the browser becomes hyperlinked. The email addresses are dynamic and not static. Any help would be greatly appreciated. Thanks!
<td align="left">
<xsl:for-each select="fmrs:resultset/fmrs:record/fmrs:field[@name='Contacts::email']/fmrs:data">
<xsl:if test="position() != 1"><br/></xsl:if>
<xsl:value-of disable-output-escaping="yes" select="fmxslt:break_encode(.)"/>
<xsl:if test=". = ''">
<xsl:text disable-output-escaping="yes"> </xsl:text>
</xsl:if>
</xsl:for-each>
</td>
I'm trying to make it where the email address that appears in the browser becomes hyperlinked. The email addresses are dynamic and not static. Any help would be greatly appreciated. Thanks!