Specifying the UML-to-XSD target namespace and prefix

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 Modeling > Transform > Configure Transformations. 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:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, from the Transformations/Configurations list, select a transformation configuration.
  3. Click the Properties tab.
  4. On the Properties page, in the Property column, click Target Namespace.
  5. In the Value column, type a name.
  6. In the Property column, click Target Namespace Prefix.
  7. In the Value column, type a name.
  8. Click Apply.
  9. Click Close.
The options are applied the next time that you run this transformation configuration.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.