XSLTUnit tests, again

<xsl:param name="test-name"/>

<xsl:template match="/">
  <xsltu:tests>
    <xsl:if test="$test-name = 'test_title'">
      <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>
    </xsl:if>

    <xsl:if test="$test-name = 'test_title_oops'">
      <xsltu:test id="test_title_oops">
        ...
      </xsltu:test>
    </xsl:if>

    ...
  </xsltu:tests>
</xsl:template>
So here's our param and conditionals. There's a bit of duplication of names and things, but it's not horrendoues. Now, we can pass in a parameter, naming the test we want, and just get the one set of results.

Remember though that these XSLTUnit tests are being generated from our test definitions, so we just need to jiggle our generator slightly.

We also need to update our Java driver.