This file is the original.
This is a set of XSLT specifications to transform TEI XML
documents to HTML, to LaTeX, and to XSL Formatting Objects.
It can be downloaded from the Releases area of the TEI SourceForge site.
It concentrates on TEI Lite, but adding support
for other modules is fairly easy. These stylesheets are primarily for use
on new
documents, i.e. reports and web pages that have been
authored from scratch, rather than traditional TEI-encoded
existing material.
The stylesheets have internal documentation, using P&P Software's XSLTdoc system; the results can be browsed in the technical documentation section.
The XSL FO stylesheets were developed for use with PassiveTeX (
Questions about these stylesheets should be directed to the TEI-L mailing list, or to their author, Sebastian Rahtz.
The stylesheets are divided into four directories:
Within each directory there is a separate file for the templates
which implement each of the TEI modules (eg
The normal method of use is to decide which of the three output methods
is wanted, and then reference the corresponding
The TEI stylesheets are designed to be customized, more parameterization will be added in future. There are currently several hundred things you can set to change the output, described in the Customization Handbook. They are either XSLT variables, or named templates, so you need to understand a little of XSL syntax. If you know a bit more, you can override any of the templates in the style files, but then you are on your own.
The Stylebear web form will construct an XSL file for you, with all the variables configured.
The stylesheets have been tested at various times with the Microsoft, XT, Saxon, jd, libxslt, Xalan, Sablotron and Oracle XSLT processors; but at present the ones which are known to work fully are Xalan, Saxon and libxslt. The Microsoft processor can be used, but does not support multiple file output, which means that you cannot use the `split' feature of the stylesheets to make multiple HTML files from one XML file. There are ways to achieve the same effect, if you know what you are doing, using Javascript.
If you have not yet installed an XSLT processor, it is probably
sensible to pick Mike Kay's Saxon (from