Tamino Schema Editor Version 9.7
 —  Tamino Schema Editor  —

Schema Tree Items Explained

This document describes all commands that can be chosen from the Insert menu:

Note:
When not indicated otherwise, the commands are available in all views.

For the corresponding XML Schema constructs, references are made to the W3C site:


Icon in schema tree All

Groups elements within a complex element declaration.

Schema construct:

xs:all

The constraints are described in the XML Schema Part 0: Primer, section 2.7.

Top of page

Icon in schema tree Annotation

Adds documentation or application-specific information to a declaration.

Schema construct:

xs:annotation

See XML Schema Part 0: Primer, section 2.6.

Top of page

Icon in schema tree Any

Extends the current content model with well-formed XML, usually one or more elements belonging to a different namespace.

Schema construct:

xs:any

See XML Schema Part 0: Primer, section 5.5.

Top of page

Icon in schema tree AnyAttribute

Extends the current content model using an attribute belonging to a different namespace.

Schema construct:

xs:anyAttribute

See XML Schema Part 0: Primer, section 5.5.

Top of page

Icon in schema tree Appinfo

Adds application-specific information to a declaration.

Schema construct:

xs:appinfo

See XML Schema Part 0: Primer, section 2.6.

Top of page

Icon in schema tree Attribute

Adds an attribute declaration to an element.

Different values can be defined for the property Variety:

Variety: type / restriction
Variety: restriction with local simpleType

Defines an attribute. The type is determined by the local simple type declaration.

Schema construct:

xs:attribute xs:simpleType xs:restriction

See XML Schema Part 0: Primer, section 2.2 and XML Schema Part 2: Datatypes, section 4.1.2.

Variety: list

Defines an attribute. The type of the attribute is a list type. The type of the list values is determined by the itemType property. The itemType property may reference other simple types.

Schema construct:

xs:attribute xs:simpleType xs:list itemType="name"

See XML Schema Part 0: Primer, section 2.2 and section 2.3.1.

Variety: list with local simpleType

Defines an attribute. The type of the attribute is a list type. The type of the list values is determined by the local simple type declaration.

Schema construct:

xs:attribute xs:simpleType xs:list

See XML Schema Part 0: Primer, section 2.2 and XML Schema Part 2: Datatypes, section 4.1.2.

Variety: union

Defines an attribute. Using a union, the type of the attribute is composed of other types. These types are simple types which are referenced by the memberTypes property and/or are defined using local simple type declarations.

Schema construct:

xs:attribute xs:simpleType xs:union memberTypes="name name1"

See XML Schema Part 0: Primer, section 2.2 and section 2.3.2.

Top of page

Icon in schema tree AttributeGroup

Groups all attribute declarations in a global attribute group.

Schema construct:

xs:attributeGroup

See XML Schema Part 0: Primer, section 2.8

Top of page

Icon in schema tree AttributeGroup reference

Adds an attributeGroup declaration by referring to an existing attributeGroup.

Schema construct:

xs:attributeGroup ref="name"

Top of page

Icon in schema tree Attribute info

Defines physical properties for an attribute. The attribute is addressed by the path in the Context property.

Schema construct:

tsd:attributeInfo context = "path"

Top of page

Icon in schema tree Attribute reference

Adds an attribute declaration by referring to an existing attribute.

Schema construct:

xs:attribute ref="name"

See XML Schema Part 0: Primer, section 2.2.

Top of page

Icon in schema tree Choice

Declares a choice of elements: only one element within the choice can appear in an instance.

Schema construct:

xs:choice

See XML Schema Part 0: Primer, section 2.7.

Top of page

Icon in schema tree ComplexType

A complex type may contain other element and attribute declarations.

Different values can be defined for the property Derivation method:

Derivation: new

Declares a new global complex type.

Schema construct:

xs:complexType name="name"

See XML Schema Part 0: Primer, section 2.5 and section 2.7.

Derivation: extension

Defines a global complex type by extending an existing complex type which is referenced by the Base type property.

Schema construct:

xs:complexType xs:complexContent xs:extension base="name"

See XML Schema Part 0: Primer, section 4.2.

Derivation: restriction

Defines a global complex type by restricting an existing complex type which is referenced by the Base type property.

Schema construct:

xs:complexType xs:complexContent xs:restriction base="name"

See XML Schema Part 1: Structures, section 3.4.

Top of page

Icon in schema tree Doctype

Specifies the doctype of the Tamino schema. One schema can contain multiple doctypes. The name must be the same as a global element in the schema.

Schema construct:

tsd:doctype

Top of page

Icon in schema tree Documentation

Adds documentation information to a declaration.

Schema construct:

xs:documentation

See XML Schema Part 0: Primer, section 2.6.

Top of page

Icon in schema tree Element complex

A complex element may contain other element and attribute declarations.

Different values can be defined for the property Derivation method:

Derivation: new

Declares a new complex element.

Schema construct:

xs:element xs:complexType

See XML Schema Part 0: Primer, section 2.5 and section 2.7.

Derivation: none

Declares a complex element by referencing an existing complex type.

Schema construct:

xs:element type="name"

See XML Schema Part 0: Primer, section 2.5.

Derivation: extension

Defines a complex element by extending an existing complex type which is referenced by the Base type property.

Schema construct:

xs:element xs:complexType xs:complexContent xs:extension base ="name"

See XML Schema Part 0: Primer, section 4.2.

Derivation: restriction

Defines a complex element by restricting an existing complex type which is referenced by the Base type property.

Schema construct:

xs:element xs:complexType xs:complexContent xs:restriction base ="name"

See XML Schema Part 1: Structures, section 3.4.

Top of page

Icon in schema tree Element info

Defines physical properties for an element. The element is addressed by the path in the Context property.

Schema construct:

tsd:elementInfo context = "path"

Top of page

Icon in schema tree Element reference

Adds an element declaration by referring to an existing element.

Schema construct:

xs:element ref="name"

See XML Schema Part 0: Primer, section 2.2.

Top of page

Icon in schema tree Element simple

Adds a simple element declaration.

Different values can be defined for the property Variety:

Variety: type / restriction
Variety: restriction with local simpleType

Defines an element. The type is determined by the local simple type declaration.

Schema construct:

xs:element xs:simpleType xs:restriction

See XML Schema Part 0: Primer, section 2.2 and XML Schema Part 2: Datatypes, section 4.1.2.

Variety: list

Defines an element. The type of the element is a list type. The type of the list values is determined by the itemType property. The itemType property may reference other simple types.

Schema construct:

xs:element xs:simpleType xs:list itemType="name"

See XML Schema Part 0: Primer, section 2.2 and section 2.3.1.

Variety: list with local simpleType

Defines an element. The type of the element is a list type. The type of the list values is determined by the local simple type declaration.

Schema construct:

xs:element xs:simpleType xs:list

See XML Schema Part 0: Primer, section 2.2 and XML Schema Part 2: Datatypes, section 4.1.2.

Variety: union

Defines an element. Using a union, the type of the element is composed of other types. These types are simple types which are referenced by the memberTypes property and/or are defined using local simple type declarations.

Schema construct:

xs:element xs:simpleType xs:union memberTypes="name name1"

See XML Schema Part 0: Primer, section 2.2 and section 2.3.2.

Top of page

Icon in schema tree Element unknown

Adds an element declaration that references an existing type. This schema tree item is usually chosen if a user-defined type is referenced and the type is not known to the Schema Editor. Thus, the Schema Editor cannot determine whether the element is an element simple, element complex or element with attributes. If the declaration of the type is loaded into the Schema Editor, the tree item is updated.

Schema construct:

xs:element type = "name"

Top of page

Icon in schema tree Element with attributes

An element with attributes may not contain other elements, but may carry attributes and may contain simple values.

Different values can be defined for the property Derivation method:

Derivation: none

Declares an element with attributes by referencing an existing element with attributes.

Schema construct:

xs:element type="name"

See XML Schema Part 0: Primer, section 2.5.

Derivation: extension

Defines an element with attributes by extending an existing simple type or simple type with attributes which is referenced by the Base type property.

Schema construct:

xs:element xs:complexType xs:simpleContent xs:extension base="name"

See XML Schema Part 1: Structures, section 3.4.

Derivation: restriction

Defines an element with attributes by restricting an existing simple type with attributes or complex type which is referenced by the Base type property. When a complex type is restricted, the type of the simple content must be determined by a local simple type declaration.

Schema construct:

xs:element xs:complexType xs:simpleContent xs:restriction base="name"

See XML Schema Part 1: Structures, section 3.4.

Top of page

Icon in schema tree Group

Groups element declarations in a global group.

Schema construct:

xs:group

See XML Schema Part 0: Primer, section 2.7.

Top of page

Icon in schema tree Group reference

Adds a group declaration by referring to an existing group.

Schema construct:

xs:group ref="name"

See XML Schema Part 0: Primer, section 2.7.

Top of page

Icon in schema tree Import

References another schema that has another target namespace. Enables the schema components to be referenced by components of this schema.

Schema construct:

xs:import

See XML Schema Part 0: Primer, section 5.4.

Top of page

Icon in schema tree Include

References another schema that has the same target namespace. Enables the schema components to be used by components of this schema without modifications. Big schemas may be distributed into several schema documents by this mechanism.

Schema construct:

xs:include

See XML Schema Part 0: Primer, section 4.1.

Top of page

Icon in schema tree Key

Defines a key.

Schema construct:

xs:key xs:selector xs:field

See XML Schema Part 0: Primer, section 5.2.

Top of page

Icon in schema tree Keyref

References a key.

Schema construct:

xs:keyref xs:selector xs:field

See XML Schema Part 0: Primer, section 5.2.

Top of page

Icon in schema tree Notation

Adds notation declarations to the schema.

Schema construct:

xs:notation

See XML Schema Part 1: Structures, section 3.12 on the W3C site.

Top of page

Icon in schema tree Redefine

References another schema that has the same target namespace. Enables schema components to be used by components of this schema with or without modifications. Groups and types of the other schema may be modified by adding them with modifications below the Redefine node.

Schema construct:

xs:redefine

See XML Schema Part 0: Primer, section 4.5.

Top of page

Icon in schema tree Schema

Schema root node. This node is always present and cannot be deleted. Therefore, a corresponding command is not available in the Insert menu.

Schema construct:

xs:schema

See XML Schema Part1: Structures, section 3.15.

Top of page

Icon in schema tree Sequence

Declares a sequence of elements: elements within a sequence group must appear in an instance in that order.

Schema construct:

xs:sequence

See XML Schema Part 0: Primer, section 2.7.

Top of page

Icon in schema tree SimpleType

Adds a simple type declaration.

Different values can be defined for the property Variety:

Variety: restriction

Defines a simple type by restricting an existing simple type which is referenced by the Base type attribute.

Available if the simple type is a predefined type.

Only available if the simple type is a user-defined type.

Schema construct:

xs:simpleType xs:restriction base ="name"

See XML Schema Part 0: Primer, section 2.3.

Variety: restriction with local simpleType

Defines a simple type. The type is determined by the local simple type declaration.

Schema construct:

xs:simpleType xs:restriction

See XML Schema Part 2: Datatypes, section 4.1.2.

Variety: list

Defines a simple type. The type is a list type. The type of the list values is determined by the itemType property. The itemType property may reference other simple types.

Schema construct:

xs:simpleType xs:list itemType="name"

See XML Schema Part 0: Primer, section 2.3.1.

Variety: list with local simpleType

Defines a simple type. The type is a list type. The type of the list values is determined by the local simple type declaration.

Schema construct:

xs:simpleType xs:list

See XML Schema Part 2: Datatypes, section 4.1.2.

Variety: union

Defines a simple type. Using a union, the type is composed of other types. These types are simple types which are referenced by the memberTypes property and/or are defined using local simple type declarations.

Schema construct:

xs:simpleType xs:union memberTypes="name name1"

See XML Schema Part 0: Primer, section 2.3.2.

Top of page

Icon in schema tree SimpleType with attributes

A simple type with attributes may contain other element and attribute declarations.

Different values can be defined for the property derivation:

Derivation: extension

Defines a simple type with attributes by extending an existing simple type or simple type with attributes which is referenced by the Base type property.

Schema construct:

xs:complexType xs:simpleContent xs:extension base="name"

See XML Schema Part 1: Structures, section 3.4.

Derivation: restriction

Defines a simple type with attributes by restricting an existing simple type with attributes or complex type which is referenced by the Base type property. When a complex type is restricted, the type of the simple content must be determined by a local simple type declaration.

Schema construct:

xs:complexType xs:simpleContent xs:restriction base="name"

See XML Schema Part 1: Structures, section 3.4.

Top of page

Icon in schema tree Tsd unique

Occurs below tsd:doctype. Defines a uniqueness constraint over all instances of the doctype where the key is defined.

Schema construct:

tsd:unique

For more information on defining unique keys, see Physical Schema for Elements and Attributes in the Tamino XML Schema User Guide (located in the Tamino XML Server documentation).

Top of page

Icon in schema tree Unique

Defines a uniqueness constraint over different parts of the same instance.

Schema construct:

xs:unique xs:selector xs:field

See XML Schema Part 0: Primer, section 5.1.

Top of page