Chapter 4 Generating and reverse engineering an XSD, a DTD or an XDR file

Defining generation parameters

You can define various parameters before generating an XSD, a DTD or an

XDR file.

Check model

You can check your model before generation if you select the Check model check box. This check box is available for all XML languages. The generation stops if an error is found. You must correct this error before starting the generation again.

For more information on the Check model feature, see section Checking an XML model in chapter Working with an XML model.

Defining generation targets

When you start the generation process, you can choose to:

Generate for a selected XML language

Use an extended model definition (.XEM) that extends the XML language

To use an extended model definition that extends the XML language, you must have an extended model definition attached to the model. You can either create a new extended model definition or import an existing extended model definition in the model.

For more information on how to create or import an extended model definition, see sections Creating an extended model definition, or Importing an extended model definition into a model, in chapter Extended Model Definitions Reference Guide in the Advanced User Documentation.

If you use an extended model definition to extend the XML language, you must use an extended model definition designed for this kind of generation.

To do this, you must verify that the value Complement Language Generation is selected in the extended model definition editor.

When you attach an extended model definition to your model, the Targets page in the Generation dialog box displays the target extended model definition that can be selected for generation.

For more information on the generation targets, see section Generation targets, in chapter Extended Model Definitions Reference Guide, in the Advanced User Documentation.

XSM User's Guide

203

Page 215
Image 215
Sybase XML manual Defining generation parameters, Check model, Defining generation targets, 203