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 'Category' and
<xsl:value-of select="@Category" />
Returns a string with item's title (like 'Some Category'). But I need a URL or ID. Any suggestions?