XSLTUnit tests, again
<xsl:template match="/">
<xsltu:tests>
<xsltu:test id="test_title">
<xsl:call-template name="xsltu:assertEqual">
<xsl:with-param name="id" select="'full-value'"/>
<xsl:with-param name="nodes1">
<xsl:apply-templates select="/document/chapter[1]/heading"/>
</xsl:with-param>
<xsl:with-param name="nodes2">
<big><strong>W</strong>oo!</big>
</xsl:with-param>
</xsl:call-template>
</xsltu:test>
<xsltu:test id="test_title_oops">
...
</xsltu:test>
...
</xsltu:tests>
</xsl:template>
Here we are again with our simple XSLTUnit test again.
Remember this is an XSLT stylesheet - so we have the full powerTM of XSLT at our disposal.
What we can do is pass in a parameter naming the test to run.