The following is the definition of a user-derived datatype which is a better representation of postal codes in the United States, by limiting strings to
those which are matched by a specific regular expression.
<simpleType name='better-us-zipcode'>
<restriction base='string'>
<pattern value='[0-9]{5}(-[0-9]{4})?'/> </restriction>
</simpleType>