I have this code below in my CQWP. The person/Group field contains multi values e.g Peter James;#33;#Andrew Field

<xsl:variable name="Person">

       <xsl:value-of select="@Person.title" disable-output-escaping="yes"></xsl:value-of>


       <xsl:variable name="Personid">

       <xsl:value-of select="@Person.id"></xsl:value-of>


I would like to do 2 things:-

a) show a display name like this Peter James;Andrew Field. I want to remove # and ; I used disable-output-escaping but didn't work.

b) Also want to add a link to the user profile e.g

<a href="/_layouts/userdisp.aspx?ID={$Personid}">
         <xsl:value-of select="$Person" disable-output-escaping="yes"/>

When I try this I don't see to get the Person.id value.

THanks in advance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.