A named template that is never invoked via xsl:call-template is dead code
and should be removed.
Incorrect:
<xsl:template name="footer">
<footer>Copyright 2026</footer>
</xsl:template>
<!-- xsl:call-template name="footer" never appears in this stylesheet -->
Correct:
<xsl:template name="footer">
<footer>Copyright 2026</footer>
</xsl:template>
<xsl:template match="/">
<xsl:call-template name="footer"/>
</xsl:template>