← all checks
warning //xsl:function[not(some $x in //(@match | @select) except .//(@match | @select) satisfies contains($x, concat(@name,'(')))]

Unused function

A stylesheet function whose name never appears in any match or select attribute is dead code and should be removed.

Incorrect:

<xsl:function name="my:format">
  <xsl:param name="value"/>
  <xsl:value-of select="$value"/>
</xsl:function>
<!-- my:format is never referenced in match or select -->

Correct:

<xsl:function name="my:format">
  <xsl:param name="value"/>
  <xsl:value-of select="$value"/>
</xsl:function>

<xsl:template match="/">
  <p><xsl:value-of select="my:format(title)"/></p>
</xsl:template>