Purpose | This element contains schema relevant information. |
Parent element |
.../xs:annotation/xs:appinfo |
Child elements | tsd:collection ,
tsd:doctype ,
tsd:elementInfo ,
tsd:attributeInfo ,
tsd:adminInfo |
Attributes |
name |
Restrictions | tsd:schemaInfo is currently
required for a schema to be defined in Tamino. Thus, it is currently not
possible to define an arbitrary XML schema downloaded from the Internet as a
Tamino schema.
|
Name | Type | Description |
---|---|---|
name |
xs:NMTOKEN |
This value of this attribute specifies the
name of the schema that is described by the whole tsd:schemaInfo
element and its associated subtree. The name of a schema must be unique in the
scope of the collection in which the schema is defined.
|
This example shows how to specify information for the "Telephone" schema. It is defined with closed contents, and the collection name and doctype name are assigned to the schema with this definition:
<xs:element name = "address"> <xs:annotation> <xs:appinfo> <tsd:schemaInfo name = "Telephone"> <tsd:collection name = "Sample"/> <tsd:doctype name = "Telephone"> <tsd:logical> <tsd:content>closed</tsd:content> </tsd:logical> </tsd:doctype> </tsd:schemaInfo> <tsd:elementInfo> <tsd:logical> <tsd:collation> <tsd:language value="de"/> <tsd:strength value="primary"/> <tsd:caseFirst value = "upperFirst"/> <tsd:alternate value = "shifted"/> <tsd:caseLevel value = "false"/> <tsd:french value = "false"/> <tsd:normalization value ="false"/> </tsd:collation> </tsd:logical> <tsd:physical> <tsd:native> <tsd:index> <tsd:standard/> </tsd:index> </tsd:native> </tsd:physical> </tsd:elementInfo </xs:appinfo> </xs:annotation> <xs:complexType> <xs:simpleContent> <xs:extension base = "xs:string"> <xs:attribute ref = "xml:lang" fixed = "de"> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element>