There is a List with Lookup field. And there is a CQWP web part which uses this list as a Source and uses custom XSL style added to Itemstyle.xsl
.
And there is a problem how to render this field as a link?
Field name is Vegetable
and
<xsl:value-of select="@Vegetable" />
Returns a string with item's title (like 'Potato'). Any suggestions?
UPDATE I've found an article with similar problem. And here is a comment form it:
We raised a call with Microsoft PSS in the end and we’ve been told today by PSS after consulting with the SharePoint dev team that this is a known issue and that Custom Fields using the People or Groups field type do NOT work with the CQWP, only out of the box fields.
The workaround above does work, however further tests show it’s not reliable and is very situational.