Maps to a UML Attribute with the stereotype XSDpattern. The name and type of such an attribute do not make sense.
<pattern id = ID value = anySimpleType {any attributes with non-schema namespace…}> Content: (annotation?) </pattern> {value} must be a valid regular expression. |
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 <simpleType name='better-us-zipcode'> <restriction base='string'> <pattern value='[0-9]{5}(-[0-9]{4})?'/> </restriction> </simpleType> |