Higgins

Utilities - Tests





We use a number of XSL transformations in the project, and have developed a method for applying test cases to these using pure XSL. The test cases are encoded in XML and processed using a set of XSL transformations.

Please take a moment to read the disclaimer and the copyright notice

XSL transformation testing

Description

Test case coding is done in three steps:

  1. code test cases in Higgins Test XML
  2. code a small XSL wrapper for the XSL test processing code to launch the tests
  3. apply the wrapper to the Test XML using an XSL processor (currently MSXML, but the code can easily be altered to work with Xalan or Saxon instead).

The wrapper is used to let the tests run on the appropriate templates. It also specifies whether the test results should be given as XML, HTML or text (suitable for Perl test code).

Code and examples



Valid XHTML 1.1!|Valid CSS!|Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0