Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Maps to a UML Attribute with the stereotype XSDpattern. The name and type of such an attribute do not make sense.

  • value – to Attribute initial value or TaggedValue with name ‘value’.
Panel
titlepattern XML representation summary
<pattern
	id = ID
	value = anySimpleType
	{any attributes with non-schema namespace…}>
	Content: (annotation?)
</pattern>
{value} must be a valid regular expression.


Panel
titlepattern XML code sample
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>