I am working with XSLT files in an Umbraco solution.
I want the entire ul tag to disappear if there is no elements to be shown:
<ul>
<xsl:for-each select="umbraco.library:GetXmlNodeById($source)/child::* [@isDoc and string(umbracoNaviHide) != '1']">
<li>
<a href="{umbraco.library:NiceUrl(@id)}" class="menuitem">
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:for-each>
</ul>
How can I make a IF statement that skips the entire codeblock if the foreach loop has no items?