![](/images/new-backgrounds/1214202/214202273x1.webp)
Chapter 2 Building an XML model
Defining import, include and redefine
Import, Include and Redefine allow you to enrich your XML model with external namespaces, schema files or schema components.
Import, Include and Redefine are only available in a model targeted with
XSD.
Defining an import
An import identifies a namespace whose schema components are referenced by the current schema.
With an import, you can use schema components from any schema with different target namespace than the current schema.
In a schema, an import is declared with the <import> tag.
For example:
Defining import properties
To display an import property sheet,
Browser tree view.
Import general | The General page of an import property sheet displays the following | |||
properties | properties: |
|
|
|
| Property |
| Description | |
|
| |||
|
|
|
|
|
| Schema location |
| URI reference for the location of a schema file with an | |
|
|
| external 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: ORDER.xsd | |
| ID |
| ID of the import. Its value must be of type ID and unique | |
|
|
| within the schema containing the import | |
| Namespace |
| URI reference for the namespace to import. For example: | |
|
|
| xml.ordering | |
|
|
|
| |
XSM User's Guide |
| 125 |