Global Attribute

The Attribute icon from the XML Schema Toolbox creates an XSDtopLevelAttribute class, which acts as an XSD global attribute, when dropped directly on a diagram.

XSD Properties:

Double-click on the XSDtopLevelAttribute stereotyped Class in the diagram or the Project Browser

Reference:

Field/Button

Usage

See Also

Name

Specify the name for this global attribute

 

Type

Specify either an XSD built-in dataType or simpleType

 

Value

If Type is an XSD built-in type then optionally specify its value

Option

Usage

Default

Specifies Value as default value

Fixed

Specifies Value as fixed

 

Nested simpleType

Check this option to create an XSDsimpleType as a child of this global attribute

Simple Type

Form

Specify whether to qualify the attribute ( Optional )

Option

Usage

qualified

Use the Prefix supplied on the Schema package to qualify this attribute

unqualified

Do not qualify this attribute

 

 

 

Schema Package

Annotation

Specify the notes for this attribute ( Optional )

 

OK

Save the values entered and close the dialog

 

Cancel

Discard the values entered and close the dialog

 

Help

Display this Help topic

 

UML

Open the UML Properties dialog

This button is available when editing the global attribute

Properties

Notes:

  • 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
  • Global attributes cannot contain any UML Attributes
  • Global attributes cannot be the source of Association connector
  • Global attributes cannot be the target of a Generalization connector
  • Global attributes can be the target of Association connector from Complex Type Classes
  • Global attributes can have at most one Generalization connector to a Simple Type Class