← all checks
warning //*[name()='xsl:for-each' or name()='xsl:if' or name()='xsl:otherwise' or name()='xsl:when'][count(node()) = count(text()) and normalize-space() = ""]

Empty content in instructions

Instruction elements such as xsl:for-each, xsl:if, xsl:when, and xsl:otherwise with no content produce no output and are almost certainly a mistake.

Incorrect:

<xsl:for-each select="item">
</xsl:for-each>

Correct:

<xsl:for-each select="item">
  <xsl:value-of select="."/>
</xsl:for-each>