XSM Properties

You open the model property sheet by right-clicking the model in the Browser and selecting Properties.

Each XML model has the following model properties:

Property

Description

Name/Code/Comment

Identify the model. The name should clearly convey the model's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. You can optionally add a comment to provide more detailed information about the model. By default the code is auto-generated from the name by applying the naming conventions specified in the model options. To decouple name-code synchronization, click to release the = button to the right of the Code field.

Filename

Specifies the location of the model file. This box is empty if the model has never been saved.

Author

Specifies the author of the model. If you enter nothing, the Author field in diagram title boxes displays the user name from the model property sheet Version Info tab. If you enter a space, the Author field displays nothing.

Version

Specifies the version of the model. You can use this box to display the repository version or a user defined version of the model. This parameter is defined in the display preferences of the Title node.

XML language

Specifies the model target.

Default diagram

Specifies the diagram displayed by default when you open the model.

Keywords

Provide a way of loosely grouping objects through tagging. To enter multiple keywords, separate them with commas.

The following tabs are also available:
  • Detail - [XSD only] Contains the following properties:

    Property

    Description

    Target Namespace

    Specifies a URI as the namespace for all the model objects. All the schema elements with this prefix in their start-tag will be associated with the namespace. For example: http://www.mycompany.com/myproduct/XMLmodel

    Language

    Specifies the language used in the model. For example: en, en-GB, en-US, de, fr

    ID

    Specifies the ID of the model. Its value must be of type ID and unique within the file containing the model. For example: XMOD1

    Default

    Specifies defaults for the Form and Block and Final model object properties.

  • Items - lists the model's global objects (which have no parent symbol in the diagram, and are directly linked to the <schema> tag). The list reflects the order in which global objects are declared in the schema. You can change the order of declaration by selecting an item in the list and using the arrowed buttons, at the bottom-left corner of the tab, to move it in the list. The following tools are available on this tab:

    Tool

    Description

    Add Element

    Add Group

    Add Attribute

    Add Attribute Group

    Add Simple Type [XSD only]

    Add Complex Type [XSD only]

    Add Notation

    Add Annotation [XSD only]

  • External Schemas - [XSD only] Allows you to link to and reuse in your model global objects from other schemas. The following tools are available on this tab:

    Tool

    Description

    Add Include

    Add Import

    Add Redefine

    Add Annotation

  • Namespaces - [XSD and XDR only] Lists the namespaces used to declare objects used in the model.
  • Preview - Displays a preview of the XSD, DTD or XDR file generated from the XSM.