Link to home
Start Free TrialLog in
Avatar of ICG
ICGFlag for United States of America

asked on

SharePoint XSL

I have a business data list that pulls info from External Content List (SQL).  I have one field that displays an email address.  I would like for users to be able to click on the email text and enter a mailto function.  I am unsure what to edit and how to edit the XSL format.

Here is the section of the XSL that probably needs to be edited:

Direction is appreciated.
<td class="ms-vb">
        <xsl:attribute name="style">
          <xsl:choose>
            <xsl:when test="$dvt_1_form_selectkey = @*[name()=$ColumnKey]">color:blue</xsl:when>
            <xsl:otherwise />
          </xsl:choose>
        </xsl:attribute>
        <xsl:variable name="fieldValue">
          <xsl:call-template name="LFtoBR">
            <xsl:with-param name="input">
              <xsl:value-of select="@primaryEmail" />
            </xsl:with-param>
          </xsl:call-template>
        </xsl:variable>
        <xsl:copy-of select="$fieldValue" />
      </td>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ICG

ASKER

Thanks for the help, Gertone.
Well, this has nothing to do with the version of SP,
you are simply not passing the correct value to the template as a parameter
and you are using the attribute of the context node, which is just fine

but drop this line then
<xsl:param name="input"/>
you ar not using it

cheers
Avatar of ICG

ASKER

Gertone's solution was almost perfect, but template needed a little adjusting to work in SP2010.