HOPEX UML : HOPEX XML Schemas : XSD Reverse Generation : Modeling the XSD Schema tags : XSD reverse generation: Schema
   
XSD reverse generation: Schema
The "schema" tag is the root of the XML document. It defines the structure of the XSD schema.
The schema is modeled by a class of the "XML Document Definition Root" stereotype.
Namespace
Its namespace is modeled by a UML package of the "XML Document Definition" stereotype. The name of this package is the value of the "targetNamespace" attribute (the name can be modified). It contains all schemas that define it as a namespace. The namespace is uniquely described by its URN. The URN is modeled by the "XDD Urn" attribute, found in the XML generation tab.
A schema may not have a namespace. In this case, the schema is reverse generated into the package of the "XML Document Definition" stereotype which has no URN. If the package does not exist, it is created and given the name "NoTargetNamespace".
Attributes of "schema"
Name: the XSD schema has no name. Therefore the class name becomes the name of the file containing the schema. To generate a name different from that of the class, indicate the new name in the "XSD Name" parameter.
AttributFormDefault: modeled by the XSD AttributeFormDefault generation parameter. Its value is either "qualified" or "not qualified".
ElementFormDefault: modeled by the XSD ElementFormDefault generation parameter. Its value is either "qualified" or "not qualified".
BlockDefault: modeled by three generation parameters: XSD BlockExtension, XSD BlockRestriction, and XSD BlockSubstitution. Each of these parameters is either "yes" or "no", depending on whether or not the schema defines a blockDefault with a value of extension, restriction, or substitution.
FinalDefault: modeled by the two generation parameters XSD FinalExtension and XSD FinalRestriction. Each of these parameters is "yes" or "no" depending on whether or not the schema defines a finalDefault with a value of extension or restriction.
TargetNamespace: modeled by the package containing the schema.
Version : modeled by the XSD Version attribute.
Xml :lang: modeled by the XSD xml :lang attribute. This parameter has predefined values such as "fr", "de", "en-GB", and "en-US". This list can be extended.
SchemaLocation: this attribute defines the physical location of the schema. It is modeled by the XSD SpecificationLocation parameter.