Cloud Application Integration (On-Premises) : Service Development : Working with Schemas : Creating an IS Schema : Creating an IS Schema from XML Schemas that Reference Other Schemas
Creating an IS Schema from XML Schemas that Reference Other Schemas
A schema author can insert the elements, attributes, and type definitions from another schema into the schema they are creating. A schema author might do this to break up a large XML schema into several small, more reusable XML schemas. When you generate an IS schema from an XML schema that references another schema, Integration Server either includes all of the schema components in a single IS schema, creates multiple IS schemas, or creates no IS schema at all. The behavior of the Integration Server depends on the mechanism the source XML schema uses to reference the other schema. The following mechanisms can be used to reference an external schema:
*Include. When you generate an IS schema from an XML schema that uses <include> to include the contents of an external schema in the same namespace, the resulting IS schema contains all of the defined types, declared elements, and declared attributes from the source schema and the external schema. If the including, or root, XML schema references an external schema that does not contain a target namespace declaration, the external schema assumes the target namespace of the root schema.
*Import. When you generate an IS schema from an XML schema that contains an <import> element to import the contents of an external schema in a different namespace, Integration Server creates one IS schema per namespace. For example, if the source XML schema imports two XML schemas from the same namespace, Integration Server creates an IS schema for the source XML schema and then a second IS schema that includes the components from the two imported XML schemas. Integration Server assigns each imported schema the name that you specify and appends an underscore and a number to each name. For example, if you create an IS schema named “mySchema” from mySchema.xsd, Integration Server generates an IS schema named “mySchema_2” for the imported XML schema.
*Redefine. Schema authors can also use <redefine> to include and then redefine type definitions, model groups, and attribute groups from an external XML schema in the same namespace. Integration Server creates one IS schema per namespace.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback