However, there are multiple instances where the value of Selling_UM_1 is null. In these instances, I would like the link to not show, The link should only show up when Selling_UM_1 is populated. Could anyone provide me with some advice or a step in the right direction?
Or, you could do something like
<xsl:if test="normalize-space($unit) != ''">
...
</xsl:if>
if it's possible that $unit might have some whitespace but otherwise
be empty.