ZVON > References > XML Schema 2001 Reference |
Intro / Search / ZVON |
index | Schema | >> DTD << |
Element: | simpleType |
---|---|
Attributes: | | final | id | name | |
Parents: | | attribute | element | list | redefine | restriction | schema | union | |
Children: | | annotation | list | restriction | union | |
Occurs in Schema Tutorial examples:
Restrictions
Multiple restrictions
Element is either a fixed string or an integer
Element can contain a string from an enumerated set
Attribute contains a list of values
Element contains a list of values
Definition of a custom simpleType - temperature must be greater than -273.15
Limiting string length
Limiting the number of decimal places
Limiting both the number of decimal places and total places
String must contain e-mail address
Element contains date
Element represents time duration
xsi:type
definition of a simpleType, target namespace is null
definition of a simpleType, target namespace is not null
Element and type have the same name
Error - simpleType and complexType have the same name
XML Schema - finalDefault attribute
Redefine element
Abstract element, substitutionGroup
Attribute block