Dieser SimpleType wird als Basis für ein weiteres Element verwendet.
This simple type will be used as the basis for another element.
Ein globaler SimpleType kann in einem Content Model dazu verwendet werden, den Typ einer Komponente zu definieren.
A global simple type can be used in a content model to define the type of a component.
Es ist ein SimpleType, dessen Textinhalt wir durch Restriktion auf einen String einschränken möchten.
It is a simple type, the text content of which we want to restrict to a string.
Verwendung eines globalen SimpleType in einem Content Model
Using a global simple type in a content model
So erstellen Sie einen globalen SimpleType
To create a global simple type
In diesem Tutorial werden wir ein Content Model für US-Bundesstaaten in einem SimpleType definieren.
In this tutorial, you will define a content model for US states as a simple type.
Damit wird ein SimpleType namens US-State vom Datentyp xs:string erstellt.
This creates a simple type called US-State, which is of datatype xs:string.
Wenn Sie in der Komponenten-Eingabehilfe auf einer der anderen globalen Komponenten (SimpleType, Attribut, Attributgruppe) doppelklicken, erscheint diese Komponente in der Schema-Übersicht (da eine solche Komponente kein Content Model hätte) markiert.
If you double-click any of the other global components (simple type, attribute, attribute group) in the Components Entry Helper, that component will be highlighted in Schema Overview (since such a component would not have a content model).
Mit "Speichern" wird ein Element vom Typ simpleType erstellt.
A store creates an element of simple type.
Im unten gezeigten Mapping wird das Element vom simpleType first sortiert.
In the mapping below, the element of simple type first is being sorted.
Wie in der Abbildung oben gezeigt, können für einen einzigen simpleType mehrere Assertions definiert werden.
Multiple assertions can be specified on a single simple type, as in the screenshot above.
Ein simpleType (benannt oder anonym) kann in den folgenden Design-Umgebungen ausgewählt werden
A simple type (named or anonymous) can be selected in the following design environments
Funktionsparameter können einen simpleType (wie z.B. String oder Ganzzahl) oder eine komplexe Struktur haben.
Function parameters can be of simple type (such as string or integer) or a complex structure.