You can specify a target namespace and target namespace prefix
for the schema that the UML-to-XSD transformation generates. The value of
the target namespace can be a string such as http://www.mycompany.com/PurchaseOrder.
The value of the prefix can be a string such as po. If you apply the <<schema>>
stereotype of the UML-to-XSD profile to a package in the source model, you
can also specify a value in the target namespace property of the stereotype.
The target namespace value of the <<schema>> stereotype overwrites the
target namespace properties that you specify in this task.
Before you specify the UML-to-XSD target namespace and prefix, you
should read the information that is available at . From the
Transformations/Configurations list,
select
UML to XSD. On the
Transformation
Description page, click
View Transformation Documentation.
You
must be in the Modeling perspective.
To specify the UML-to-XSD target namespace and prefix:
- Click .
- In the Configure Transformations window, from
the Transformations/Configurations list, select a transformation
configuration.
- Click the Properties tab.
- On the Properties page, in the Property column,
click Target Namespace.
- In the Value column, type a name.
- In the Property column, click Target
Namespace Prefix.
- In the Value column, type a name.
- Click Apply.
- Click Close.
The options are applied the next time that you run this transformation
configuration.