Tamino Schema Editor Version 9.7
 —  Tamino Schema Editor  —

Command Line Tools for Schema Conversions

This document describes the command line tools available for different types of schema conversion.

This information is provided under the following headings:


Conversion Scripts

The conversion scripts are provided in installation-directory\Tamino\Tamino n.n\X_Tools\Tamino_Schema_Editor.

The conversion scripts are provided under Windows as .cmd files and under UNIX as .sh files.

The names of the scripts are:

Name Description
inodtdconv For the conversion from DTDs.
inotsd2conv For the conversion from TSD2 schemas.

Top of page

Tamino DTD Converter

Converts a DTD to Tamino schema format.

Usage:

inodtdconv [options]

where options are:

-help

Print out this message and exit

-version

Display the version of the converter.

-dtd file

Mandatory. Input DTD file. Use the notation: "file://.." (under Windows: "file:///drive:\....".

-tsd file

Mandatory. Output TSD file. Use system-dependent notation (under Windows: "drive:\filename.tsd")

-outputEncoding encoding

Set the encoding for the output file. The default is UTF-8.

-collection collectionname

Collection name to be used in the TSD schema. If this is not specified, no TSD-specific information will be generated. Neither the -schema nor the -doctype options will be permitted and the schema cannot be defined to Tamino.

-schema schemaname

Schema name to be used in the TSD schema. If this option is not specified, the DTD file name is used.

-doctype doctypename

Specifies the doctype to be created in the TSD schema. If you specify this option with no value, the schema file name is used. If this option is not specified, no doctype is created.

-noValidation

The DTD is not validated.

Top of page

Tamino TSD2 Converter

Converts a Tamino version 2.x schema (TSD2) to Tamino schema format.

Usage:

inotsd2conv [options]

where options are:

-help

Print out this message and exit.

-tsd2 file

Mandatory. Input TSD2 file.

-tsd file

Output TSD file. If this option is not set, the TSD2 file name is used with the extension .tsd.

-inputEncoding encoding

Set the encoding for the input file. If not set, UTF-8 is used.

-outputEncoding encoding

Set the encoding for the output file. The default is UTF-8.

-schema schemaname

Schema name to be used in the TSD schema. If this option is not specified, the collection name specified in the TSD2 schema is used.

-collection collectionname

Collection name to be used in the TSD schema. If this option is not specified, the collection name specified in the TSD2 schema is used.

-strict

Enable strict conversion mode. If not set, loose mode is used.

-content mode

Mode is "open" or "close".

If mode is set to "open", the content property of all doctypes is set to "open".

If mode is set to "close", the content property of all doctypes is set to "close".

This option overrides the content property value that is specified for strict (default: close) or loose (default: open) mapping.

-version

Print version information.

Top of page