<xsl:if>

The <xsl:if> element is a simple "if" conditional:

<xsl:if 
  test = boolean-expression>
  <!-- Content: template -->
</xsl:if> 
test

The test expression

If the test expression returns a true value, the content of the <xsl:if> element is evaluated and inserted into the result tree. Otherwise, the <xsl:if> element and all of its contents are ignored.