Elements that reference code tables
Internal schemas can contain elements that refer to records within an InfoSphere® MDM code table.
In order to support this, the InfoSphere MDM schema for specs provides two predefined types, codeTableEnum and ElementInfo. See Defining locale-sensitive data types and code table data types in the internal schema for more information.
For example, to define an element called
myCodeTableReference that refers to a code table called MYCODETABLE,
you must include the codeTableEnum and ElementInfo types in the element definition as follows:<xsd:element name="myCodeTableReference" type="mdmspec:codeTableEnum">
<xsd:annotation>
<xsd:appinfo>
<mdmspec:elementInfo>
<mdmspec:codeTableEnum codeTableRef="MYCODETABLE" />
</mdmspec:elementInfo>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>