I am creating a link on a custom display form in SP2013 on premise.
I can create a working link fine using:
<xsl:element name="a"> <xsl:attribute name="href"> <xsl:value-of select="@Announcement"/> </xsl:attribute> Click Here to see the Announcement </xsl:element>
However as the link can sometimes not exist how do I check if @Announcement is empty and thus do not display the link?
ps. I have tried implementing this: How to check if variable is not empty in xslt? however I have not been successful.