Name

MailtoUser

Example

<xsl:call-template name="MailtoUser">
  <xsl:with-param name="Person" select="@Created"/>
</xsl:call-template>

Code

<xsl:template name="MailtoUser">
  <xsl:param name="Person"/>
  <xsl:variable name="Email" select="substring-before(substring-after($Person, &quot;sip='&quot;), &quot;'&#32;id=&quot;)"/>
  <a href="mailto:{$Email}">
    <xsl:value-of select="$Email" />  
  </a>
</xsl:template>

Last edited May 28, 2010 at 9:11 PM by sympmarc, version 1

Comments

laushine Dec 29, 2011 at 5:54 PM 
Thanks for putting this together. In the example call, should the xsl:with-param line select @Author? @Created is a date/time field.