
|
| Chapter 2 Building an XML model | ||
Defining elements | In a model targeted with the | |||
in XDR files | defined by different attributes: |
|
| |
|
|
| Property or page | |
|
|
| ||
| XDR attribute |
| in element | |
| for an element | Description | property sheet | |
|
|
|
|
|
| Model | To specify if a global element can | — | |
| contain new local elements. Set to |
|
| |
|
|
|
| |
|
| closed by default. Set to open if an |
|
|
|
| Any symbol is attached to the element |
|
|
|
| symbol |
|
|
| Content | To specify the content of a global | Group type, Type | |
|
| element. If a group particle and a data |
|
|
|
| type are defined, the content value is |
|
|
|
| mixed. If a group particle and no data |
|
|
|
| type is defined, the content value is |
|
|
|
| eltOnly. If no group particle and a |
|
|
|
| data type is defined, the content value |
|
|
|
| is textOnly. If no group particle or |
|
|
|
| data type is defined, the content value |
|
|
|
| is empty |
|
|
| Order | To specify how local elements are | Group type | |
|
| organized within a global element. |
|
|
|
| Set to seq for a sequence group |
|
|
|
| particle. Set to one for a choice group |
|
|
|
| particle. Set to many for an All group |
|
|
|
| particle |
|
|
| dt:type | To specify a data type for a global | Type | |
|
| element |
|
|
| dt:values | To specify a list of available values | Values page | |
|
| for a global element |
|
|
| type | To specify the name of a global | Reference | |
|
| element as reference for a local |
|
|
|
| element |
|
|
| minOccurs | To specify the minimum number of | Detail page in local | |
|
| occurrences for a local element. | element property | |
|
| Usually set to 0 or 1 | sheet | |
| maxOccurs | To specify the maximum number of | Detail page in local | |
|
| occurrences for a local element. | element property | |
|
| Usually set to 1 or * (unbounded) | sheet | |
|
|
|
|
|
XSM User's Guide | 39 |