What's a test?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="heading">
<big>
<strong><xsl:value-of select="substring(.,1,1)"/></strong>
<xsl:value-of select="substring(.,2)"/>!
</big>
</xsl:template>
<xsl:template match="node()">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
What does it mean to test a stylesheet? Well, we stick known XML in at one end and get a result out the other side. If we've got an expected result to compare it too, we've got ourselves a test.
Here's a stylesheet.