Global Attribute

A Global Attribute is an «XSDtopLevelAttribute» stereotyped Class. You can create it by dragging the Attribute icon from the XML Schema Toolbox and dropping it directly onto a diagram.

Toolbox Icon

Access Drag icon onto diagram, or

Project Browser | Double-click on «XSDtopLevelAttribute» stereotyped element, or

Diagram | right-click on «XSDtopLevelAttribute» stereotyped element | Properties

Define Properties



See also


If you do not want to use the default name of the global attribute, overtype it with another name.



  • Type the name of a data type, or
  • Click on the drop-down arrow and select an XSD built-in dataType from the list, or
  • Click on the button and browse for an existing XSDsimpleType element as a classifier

Alternatively, select the 'Nested simpleType' checkbox.

Nested simpleType

Select this checkbox to create an XSDsimpleType element as a child of this global attribute element.

Simple Type


(Optional) If you have selected an XSD built-in dataType in the 'Type' field, type in a value.


Select this radio button to set the 'Value' field as a default value.


Select this radio button to set the 'Value' field as a fixed value.


(Optional) Click on the drop-down arrow and select:

  • qualified to use any Prefix supplied on the Schema Package to qualify this attribute, or
  • unqualified to show no qualifying prefix on the attribute name

Schema Package


(Optional) Type in any notes you need for this attribute.


Click on this button to save the attribute data entered and close the XSD attribute 'Properties' dialog.


Click on this button to discard the attribute data entered and close the XSD attribute 'Properties' dialog.


Click on this button to display this Help topic.


This button is displayed when you are editing existing XSD element information.

Click on the button to open the UML element 'Properties' dialog for the global attribute Class.



  • The field 'Nested simpleType' is available in the dialog only when creating a new global attribute (and not when editing the global attribute)
  • The fields 'Type' and 'Nested simpleType' are mutually exclusive; selecting one disables the other
  • A Global attribute:
         -  Cannot contain any UML attributes
         -  Cannot be the source of an Association connector
         -  Can be the target of an Association connector from a Complex Type Class
         -  Cannot be the target of a Generalization connector
         -  Can be the source of one Generalization connector to a Simple Type Class

Learn more