In a custom list there is a column / field defined as “Name (with presence)”.
In my modified aspx page, I want to do an ‘xsl if’ statement to check if the value from this field is the same as the current user.
<xsl:if test="@MyField = $UserID">
... code here ...
</xsl:if>
But the compare fails because the content from the MyField is something like :
<span>
<A HREF="/sites/121579/MySite/_layouts/userdisp.aspx?ID=452">***, Stef</A>
<img border="0" height="1" width="3" src="/_layouts/images/blank.gif"/>
<a href='javascript:' onclick='IMNImageOnClick();return false;' class='ms-imnlink'>
<img name='imnmark' title='' border='0' height='12' width='12' src='/_layouts/images/blank.gif' alt='No presence information' sip='stef.***@***.com' id='imn_998,type=smtp'/>
</a>
</span>
And not just “***, Stef”