Version 8.2.2
 —  Tamino XML Schema User Guide  —

The Schema Header

All information relevant to the description of a schema that cannot be expressed in the xs: namespace is located in the tsd:schemaInfo element of TSD and its subtree. This is also called the "schema header". The tsd:schemaInfo element is embedded into the xs:appinfo element (this is explained in the section The xs:annotation / xs:appinfo Mechanism for Adding Tamino-Specific Extensions).

The following diagram illustrates the content model of the tsd:schemaInfo element used under the xs:annotation and xs:appinfo elements:

graphics/schemaInfo.gif

Note:
The illustrated tsd:schemaInfo element is located under the xs:appinfo and xs:annotation elements directly under the top-level xs:schema element in the XML Schema syntax.

In detail, tsd:schemaInfo contains:

Example for a Schema Header

The following example shows a schema for storing data about hospital patients.

Note:
The full schema is given here. The start and end of the schema header are marked by comments.

<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema"
           xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition">
<!-- schema for patient data. This could be a fragment of a larger DTD
     modeling patient data in a hospital-->
<!-- Start of schema Header -->
  <xs:annotation>
    <xs:appinfo>
      <tsd:schemaInfo name = "patient-schema">
        <tsd:collection name = "Hospital"/>
        <tsd:doctype name = "patient"/>
      </tsd:schemaInfo>
    </xs:appinfo>
  </xs:annotation>
<!-- End of schema Header -->
...
</xs:schema>

Persistence of Schema Documents

Schema documents defined successfully to Tamino are stored in the doctype xs:schema in the collection ino:collection. Furthermore, a unique document name is generated for each schema document consisting of the collection name, a slash ("/") and the schema name. Thus, the schema given above could be retrieved from Tamino by using the following plain URL addressing:

http://node_name/tamino/dbname/ino:collection/xs:schema/Hospital/patient-schema

where node_name and dbname are placeholders for the nodename and the database name to be used, respectively.

Top of page