A more concise test definition
<xc:tests name="styletest"
xmlns:xc="http://www.jezuk.co.uk/xcrete/test-def">
<xc:xslt href="style.xsl"/>
<xc:test id="test_title">
<xc:apply-templates select="/document/chapter[1]/heading"/>
<xc:expected>
<big><strong>W</strong>oo!</big>
</xc:expected>
</xc:test>
...
</xc:stylesheet>
What's the stylesheet under test?
What's the test we're performing?
What's the expected result?
What's the problem with this? The XSLTUnit test is a stylesheet in its own right, so it's executable. This isn't - it's just the good bits picked out and a few pointy brackets wrapped round it.
XSLT to the rescue!