A simple XSLTUnit test, again
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl"
xmlns:xsltu="http://xsltunit.org/0/"
exclude-result-prefixes="exsl">
<xsl:import href="style.xsl"/>
<xsl:import href="xsltunit.xsl"/>
<xsl:output method="xml" indent="yes"/>
<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('test.xml')/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:tests>
</xsl:template>
</xsl:stylesheet>
Let's look at that test again
What's the stylesheet under test?
Where's the test data coming from?
What's the test we're performing?
What's the expected result?
Those are the important bits. Let's pull them out and shuffle them around a bit.