I'm building a Content Query Web Part that is supposed to show a link to a user page. I get the user name from a custom list containing a column named 'Member' of the type 'Person or Group'. To build the link in the ItemStyle.xsl, I need both the name and the Id of the user:
<a href="http://<site>/_layouts/userdisp.aspx?ID=@ID">
<xsl:value-of select="@Member" />
</a>
However, I'm only able to get the name OR the Id from the Content Query. E.g. if I set "Show field: Name (with presence)" for the Member column I get the name, and if I set "Show field: ID" I obviously get the Id. But I need both!
I've done some quite extensive googling, but I haven't been able to find an answer. The closest I've came is this:
but the reply is not satisfactory to my needs. Any help or ideas would be greatly appreciated!