Attributes can be created under elements or complex types or directly at the root or in an attribute group for reuse.
There are global and local attributes:
Global attributes are defined with the Model menu. In a schema, they are directly linked to the <schema> tag (root element). They can be reused for any element in the model through references (See "NUMBER" attribute in the generated schema)
Local attributes only apply to the elements in which they are created. They can be defined by reference to a global attribute (See Reference property)
Extract of an XDR file:
In a model targeting XSD, you can derive an attribute data type to extend or restrict its values. For example:
Generated schema: