to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

Constructing simple types

Simple types can be: A lot of often-used simple types (all the primitive and some derived) are predefined:

In addition, white space normalization of attribute values and chardata can be controlled at the simple-type definitions.

Example definition of a derived simple type:

<simpleType name="may_date">
  <restriction base="date">
    <pattern value="\d{4}-05-\d{2}"/>
  </restriction>
</simpleType>

All this is specified in Part 2 of the spec.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next