ToXgene - the ToX XML Data Generator
UofT logo

home

[downloads]

documents

architecture

credits

use cases

other online resources

Platform requirements

Download

(February 2005) ToXgene 2.3 released. This is a completely new version of ToXgene, with several bugfixes and an API for calling ToXgene from within any Java application.


BY DOWNLOADING ToXgene YOU AGREE TO COMPLY WITH THIS LICENSE AGREEMENT

Sample Templates

These are simple templates that show specific features of ToXgene. The package comes with other samples that implement larger collections of documents and established sythetic data benchmarks.

  • join.tsl shows how to perform a join between two lists.
  • recursion.tsl shows how to generate recursive elements with ToXgene. This sample uses this input file input.xml.

Editing TSL templates

TSL templates are XML documents, therefore any XML editor smart enough to understand the DTD provided can be used. I use psgml, a very decent package for XEmacs. You can make XEmacs recognize ".tsl" files as XML documents by adding the following lines to your .emacs configuration file (or to your .xemacs/init.el file, if you're using the new file configuration scheme).

(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)
(setq auto-mode-alist (append '( ("\\.tsl$" . xml-mode) ) auto-mode-alist))