
Chapter 2 Building an XML model
Defining an include
An include allows you to include a specified schema file in the target namespace of the current schema.
With an include, you can use schema components from any schema with the same target namespace as the current schema or with no specified target namespace.
In a schema, an include is declared with the <include> tag.
For example:
Defining include properties
To display an include property sheet,
Browser tree view.
Include general | The General page of an include property sheet displays the following | ||
properties | properties: |
|
|
| Property |
| Description |
|
| ||
|
|
|
|
| Schema |
| URI reference for the location of a schema file with the same |
| location |
| target namespace or no specified target namespace. You can use |
|
|
| the Browse tool beside the Properties tool to select a schema |
|
|
| file among those opened in the current workspace. For |
|
|
| example: PROFORMA.xsd |
| ID |
| ID of the include. Its value must be of type ID and unique |
|
|
| within the schema containing the include |
| Comment |
| Descriptive label of the include |
| Stereotype |
| |
|
|
| without changing its structure. It can be predefined or user- |
|
|
| defined |
|
|
|
|
XSM User's Guide | 127 |