This one ought to be extremely easy for experienced xslt-ers.
I have an html file, and in it are things like
<div class="ghoul"></div>
<div class="vampire></div>
and so on. In my stylesheet, I have different things to do with the div's depending on the class. So I have
<xsl:template match="div">
<xsl:choose>
<xsl:when test="@class='vampire'">
... do vampire stuff ..
</xsl:when>
<xsl:when test="@class='ghoul'">
... do ghoul stuff ..
</xsl>
</xsl:choose>
</xsl:template>
The idea is that I went the template to be applied differently to div's whose class is vampire than to those whose class is ghoul.
These matches do not happen at all. I can tell that because the framework in which I put the xslt file has debugging techniques available that prove it.
How do I separately match div's whose class is ghould and div's whose class is vampire?