|
the Timian man page
Timian is essentially just a custom XSLT tranformer built on Xalan (and Xerces) from
the Apache Software Foundation.
Running TimianThe general format for invoking Timian is: timian [--help] [-v] [--locale=<locale>] [--spec=<spec>] [-o <output>] <xmldata> <xsltfile>
The arguments are explained below. helpOptional. Display a help message. vOptional. Specifies that the input XML document should be validated against the DTD specified in the document. For normal/regular use there is little reason, but it can be quite useful whenever you change the analog configuration - changing certain options may invalidate the XML document. outputOptional. Specifies an outputfile; defaults to stdout. localeOptional. Specifies the locale to be used for the report. Default is generally en_GB, but may be changed when you configure Timian for a build. A locale is of the form "language[_territory][@modifier]". The format is similar to that of the setlocale() C library call, except any specification of a codeset will be ignored. (Timian reports are always written using UTF-8). See section internationali[sz]ation. specOptional. Specifies the name of an XML document to be provided as the report specification. The value specified is passed straight to the XSLT code as a parameter. xmldataRequired. Specifies the name of the XML document produced by analog. (at a later point Timian will also be able to read the XML data from stdin). xsltfileRequired. Specifies the name of the file containing the XSLT code. (this is likely to change to become a keyword argument rather than a positional). ExampleTo run timian with the following settings:
./timian --locale=en_US --spec=rd-jan.xml data540.xml timian.xsl
Personally I prefer putting analog and timian into the same makefile and just use Make to run the whole thing, but it would be just as easy to wrap everything in a few lines of Perl or shell-script.
|