You can simply use @link in a boolean context e.g. assuming an Entry element is your context node then
Code:
<xsl:if test="@link">
checks whether it has link attribute or
Code:
<xsl:apply-templates select="Entry[@link]"/>
processes all Entry elements which have a link attribute.