Implementation of schema xsd restrictions.