Output Display

For an interface to view TTT output we have benefitted from improvements in web browser technology. Using some of the LT XML tools we are able to convert the XML output of TTT into HTML with Cascading Style Sheet (CSS) commands so that the document can be viewed in a browser with the new annotations highlighted. This approach enables users to customize the appearance of their documents to suit their own requirements. For more information about CSS see http://www.w3.org/Style/CSS/. Currently HTML and CSS do not permit a wide range of style options but in the very near future browers will become more XML and XSL compatible. This will mean that the XML output of TTT should be directly browsable and the user will be able to express style information using the XSL style language.

All the pipelines in the TTT release which output HTML use the LT XML program sgmltrans to produce the HTML. To do the conversion, the user writes rule files which define mappings between XML elements and HTML SPANS or DIVS. The rule files we have used can be found in $TTT/OUTPUT/SCRIPTS. The kind of output we produce can be viewed at http://www.ltg.ed.ac.uk/software/ttt/example1.html and http://www.ltg.ed.ac.uk/software/ttt/example2.html.

In case sgmltrans is found not to be flexible enough for complex transformations, we recommend the use of James Clark's XT which is available free-of-charge from http://www.jclark.com/xml/xt.html. XT is an implementation in Java of the tree construction part of XSL and our investigations have shown that it is fairly simple to connect XT into our pipelines. The pipeline runplain-xt demonstrates how XT can be used with the TTT tools.