|
|
| Chapter 2 Building an XML model | |
| Property |
| Description | |
|
| |||
|
|
|
|
|
| Reference |
| Name of an attribute in the current model or another model | |
|
|
| opened in the workspace. A reference allows you to reuse an | |
|
|
| attribute with all its properties without having to define it | |
|
|
| again. Use the dropdown listbox to select an attribute in the | |
|
|
| current model. Use the Browse tool to select an attribute from | |
|
|
| any model opened in the workspace. If you select an attribute | |
|
|
| from another model, a shortcut is created with the referencing | |
|
|
| attribute. When you define a reference, name and code | |
|
|
| properties are grayed. The name and code are those of the | |
|
|
| target attribute | |
| Type |
| Attribute data type. It must be a qualified name (See | |
|
|
| Glossary). Use the dropdown listbox to select a | |
|
|
| type. Use the Browse tool to select a simple type defined in | |
|
|
| the current model or another model opened in the workspace | |
| Embedded Type |
| If selected, the attribute data type disappears and a <simple | |
|
|
| type> tag is created in the schema within the <attribute> tag. | |
|
|
| Only available in a model targeted with XSD | |
| Derivation |
| Derivation method for the attribute data type. Used to extend | |
|
|
| or restrict the values of the attribute data type. When you | |
|
|
| define a derivation, the data type disappears. You must click | |
|
|
| Apply and then the Properties tool to select a type, a base | |
|
|
| type or member types for the corresponding derivation (list, | |
|
|
| restriction or union). Only available in a model targeted with | |
|
|
| XSD | |
|
|
|
|
|
Defining attributes | In a model targeted with the | |||
in XDR files | defined by different attributes: |
|
| |
|
|
| Property or page in | |
|
|
| ||
| XDR attribute |
| attribute property | |
| for an attribute | Description | sheet | |
|
|
|
|
|
| name | To specify the name of a global | Name | |
|
| attribute |
|
|
| default | To specify a default value for both | Detail page | |
|
| global and local attributes |
|
|
| dt:type | To specify a data type for a global | Type | |
|
| attribute |
|
|
| dt:values | To specify a list of available | Values page | |
|
| values for a global attribute |
|
|
| type | To specify the name of a global | Reference | |
|
| attribute as reference for a local |
|
|
|
| attribute |
|
|
|
|
|
| |
XSM User's Guide |
|
| 49 |