← all checks
error /xsl:stylesheet[count(xsl:template)=0 and count(xsl:function)=0 and count(xsl:variable)=0]

Stylesheet has no templates

A stylesheet with no templates, functions, or variables offers nothing: it can produce no output and exports nothing to import. Add at least one template. A function or variable library — one whose definitions are pulled in by the stylesheets that xsl:import it — is exempt, since its templates live in the importer.

Incorrect:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"/>
</xsl:stylesheet>

Correct:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"/>
  <xsl:template match="/">
    <p><xsl:value-of select="."/></p>
  </xsl:template>
</xsl:stylesheet>