How you plan or define your Tamino schema depends very much on your starting position.
This document describes the options open to you under the following headings:
You can start the process of defining a Tamino schema using an arbitrary external DTD.
Using the function of the Tamino Schema Editor, you can read a DTD into the editor. You can then either use default mapping for the elements and attributes of the DTD, or you can specifically map each element and attribute that interests you.
A combination of both is also possible: you define default mapping and refine the mapping information for appropriate nodes, using the features of XML Schema that cannot be inferred from DTDs. Key XML Schema features not provided for by DTDs are:
XML schemas are themselves XML documents and can therefore be parsed as such.
Contents of elements and values of attributes can be specified as being of a specific datatype.
The number of instances of element types within a parent element can be restricted.
Text values in simple type elements or attributes can be restricted.
The number of items in white-space separated lists that make up attribute values can be restricted.
You can start the process of defining a Tamino schema using an arbitrary external schema that conforms to the XML Schema standard.
You can read the XML schema into the Tamino Schema Editor and add Tamino-specific information to it.
Notes:
tsd:collection
and
tsd:schemaInfo
.
You can define a Tamino schema from scratch, that is, you have neither an existing schema to migrate, nor an external DTD, nor an XML Schema as starting point for schema definition.
You can use the Tamino Schema Editor to build a Tamino schema. The advantage of using the Tamino Schema Editor over other schema editing tools is that the Tamino Schema Editor will not generate any syntax not supported by Tamino.
Of course, you can create a schema also using any arbitrary text editor. This, however, should be treated as error-prone.
You can also use a high-level tool from a third party vendor, for example XML Spy from Altova or <oXygen/> from SyncRO Soft Ltd., to create Tamino schemas.