What's a test?
Input
<document>
<chapter>
<heading>woo</heading>
<blah/>
<blah/>
</chapter>
</document>
Result
<... something ...>
...
<big><strong>W</strong>oo!</big>
...
</... something ...>
Woo!
Here's some trivial XML instance.
If we crank it through our little stylesheet we'll get something like the result out the other end, which'll may be get rendered as Woo!
For a test to be useful, it needs to be repeatable. If something's repeatable we need a bit of automation and control.
We need - a test framework! For XSLT. XSLT stylesheets need to run in an XSLT processor.