<?xml version="1.0"?>
<!--

    Copyright (C) 2006 W3C (R) (MIT ERCIM Keio), All Rights Reserved.
    W3C liability, trademark and document use rules apply.

    http://www.w3.org/Consortium/Legal/ipr-notice
    http://www.w3.org/Consortium/Legal/copyright-documents

    $Header: /w3ccvs/WWW/2002/ws/databinding/examples/6/05/ConstrainedUnsignedIntType/echoConstrainedUnsignedIntType.xsd,v 1.11 2006/09/05 15:06:53 pdowney Exp $

-->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.w3.org/2002/ws/databinding/patterns/6/05/" xmlns:e="http://www.w3.org/2002/ws/databinding/examples/6/05/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/05/" targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/05/" elementFormDefault="qualified" attributeFormDefault="unqualified">
   <xs:element name="constrainedUnsignedIntType" type="ex:ConstrainedUnsignedIntType"/>
   <xs:simpleType name="ConstrainedUnsignedIntType">
      <xs:restriction base="xs:unsignedInt">
         <xs:pattern value="\d{3}"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:element name="echoConstrainedUnsignedIntType">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="ex:constrainedUnsignedIntType"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

