Text only | Skip links
Skip links||IT Services, University of Oxford
Spritser is an implementation of W3C ITS draft specification. It works by reading an XML document and its ITS rules (builtin, as an external document, or on instance elements), and generating an XML output file. Currently three forms of output can be produced:
  1. An XHTML file showing the original XML as verbatim text, with an ITS data category highlighted in colour
  2. An XML file with an ITS data category attached to every element, derived from the rules; this is suitable to feeding through a pipeline of transformations, one for each data category
  3. A debug format for comparison with other tools

The tool works by generating an ad hoc XSLT transformation from the instance file and its rules, which can then be applied back to the instance file.

The components of Spritser are as follows:
Spritser.shExample Unix shell script to run Spritser on an XML file and generate test output. The parameter itsRuleName is used to set the data category rule which you want to process; it defaults to ‘translateRule’. HTML output is created with the --html parameter.
spritser.xslMain Spritser transformation
sprits_tohtml.xslGenerate HTML display output from flattened file
sprits_totest.xslGenerate test output from flattened file
inherite_translate.xslApply inheritance for ITS translate data category
its.cssCSS used by HTML display
verbatim.xslAuxiliary used by HTML display

Spritser is issued under the LGPL licence.

See ChangeLog for ongoing progress.

Sebastian Rahtz. Date:
Copyright University of Oxford