Default behavior
The default behavior, without the -r
or
-l
arguments, includes:
- DTD files.
The file name is used to identify the root name. If there is no requirement to change the DTD name, then you must use the
-r
option to specify the root name.Only one OCM file is generated from a DTD at a time. If multiple messages are defined by a single DTD, then you must use the
-r
option from the command line. - XML files.
If an XML file is used, then it must contain an embedded DTD or a reference to an external DTD or Schema. The root element of the XML document is used to identify the message name.
The
-r
option is ignored for XML files because usually you do not specify a different root from what is in the XML file. - Schema files.
A single OCM file is created for each schema file. If an error happens, then no OCM file is created. This schema file contains information for all global element declarations in the schema. When selecting this OCM file to be used in a translation, you must select which root element to use. The name of this OCM file is the same as the schema file name.
To create an OCM file for a single root, use the -r option from the command line. This creates an OCM file that is named after the root.
- If there is a
target namespace, then the file name is named:
target namespace$root name.ocm
- If there is no target namespace, then the file name is
named:
root name.ocm
- If there is a
target namespace, then the file name is named: