Stylus Studio XML Editor

Table of contents

Appendices

2.15 Definition of the Simple Types Used in the Component Model

Definition of the Simple Types Used in the Component Model

The component model uses a small set of predefined simple types, such as boolean, string, token. In order to avoid introducing a dependency on any particular serialization of the component model, this specification provides its own definition of those types, patterned after [XMLSchemaP2] but independent of it. This allows processors to accept descriptions serialized using a mechanism that is not compatible with [XMLSchemaP2], such as XML 1.1 [XML11].

All types defined in this section are formally assigned to the "http://www.w3.org/2004/08/wsdl-simple-types" namespace. All references to them in this specification are made via qualified names that use the wsdls prefix. It should be noted though that there is no schema (in the sense of [XMLSchemaP1]) for that namespace, because the types defined here go beyond the capabilities of XML Schema to describe.

The simple types defined in this specification are:

  • wsdls:string

  • wsdls:Token

  • wsdls:NCName

  • wsdls:anyURI

  • wsdls:QName

  • wsdls:boolean

  • wsdls:int

All types listed above are such that their value spaces are a superset of the value space of the type with the same name defined by XML Schema [XMLSchemaP2]. In particular, the value space of the wsdls:string type is a strict superset of the value space of xsd:string, as shown by the one-character string consisting exclusively of the #x0 character.

string Type[top]

string Type

The value space of the wsdls:string type consists of finite-length sequences of characters in the range #x0-#x10FFFF inclusive, where a character is an atomic unit of text as specified by ISO/IEC 10646 [ISO10646] and Unicode [unicode].

Token Type[top]

Token Type

The value space of the wsdls:Token type is the subset of the value space of the wsdls:string type consisting of strings that do not contain the line feed (#xA), tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces.

NCName Type[top]

NCName Type

The value space of the wsdls:NCName type is the subset of the value space of the wsdls:Token type consisting of tokens that do not contain the space (#x20) and ':' characters.

anyURI Type[top]

anyURI Type

The value space of the wsdls:anyURI type consists of all Uniform Resource Identifiers (URI) as defined by [RFC2396] and amended by [RFC2732].

QName Type[top]

QName Type

The value space of the wsdls:QName type consists of the set of 2-tuples whose first component is of type wsdls:anyURI and whose second component is of type wsdls:NCName.

boolean Type[top]

boolean Type

The value space of the wsdls:boolean type consists of the two distinct values true and false.

int Type[top]

int Type

The value space of the wsdls:int type consists of the infinite set {...,-2,-1,0,1,2,...} representing the standard mathematical concept of the integer numbers.