TransXChange

Command line

The TransXChange Publisher command line interface allows you to run the publisher from the command line or a DOS bat procedure.

How to run the TransXChange Publisher from the Command Line

  1. Open a command window and change your directory to the base directory where you installed the publisher, for example, c:\txcpub.
  2. Type the publish command to invoke the publisher, with the name of the document as a required parameter. For example:

    publish documents\2.1\linear.xml

  3. When the document been successfully published the program will complete and the document will be available in the same directory as the input file. For example, ..\documents\2.1\linear.pdf. Alternatively, if an error occurred during publishing it will be displayed in the console.

Command line parameters for the TransXChange Publisher

The publish command has a number of optional command line parameters:

publish [-vosa|-full|-timetableOnly] [-novalidation] [-help]
     transxchange_file [output_directory]
  • Output options:
    • -vosa: produce a draft VOSA registration output document, including the timetable matrix. This is the default output for registration documents.
    • -full: include all information from the TransXChange file and the timetable matrix. This is the default option for general documents.
    • -timetableOnly: include just the timetable matrix in output.
  • Validation options:
    • -noXmlValidation: suppress XML schema validation. By default XML schema validation is always performed.
    • -novalidation: suppress integrity rule validation (diagnostics checking). By default diagnostics checking is always performed.
  • Help option
    • -help: list the command line options.
  • transxchange_file path and name of TransXChange XML document that is to be published.
  • output_directory Output directory in which to place published output (defaults to the directory of the input TransXChange XML document).


Page last updated: 2013/03/30