Attributes (XSM)

Attributes are used to give additional information about elements.

There are global and local attributes:

Note: In a model targeted with the XML-Data Reduced language, local attributes are first declared separately, like global attributes (with the <AttributeType> tag and a name attribute), then within their parent element (with the <attribute> tag and a type attribute).

Extract of an XDR file:



You can derive an attribute data type to extend or restrict its values. (Only with a model targeted with XSD)

For example:



Generated schema:



In a schema, attributes are declared with <attribute> tags.