Modular Contextual XML Schema Editing Using 'Main Files' Support
Smaller interrelated modules that define a complex XML Schema cannot be correctly edited or validated individually, due to their interdependency with other modules. For example, an element defined in a main schema document is not visible when you edit an included module. Oxygen XML Editor Eclipse plugin provides the support for defining the main module (or modules), thus allowing you to edit any of the imported/included schema files in the context of the larger schema structure.
You can set a main XML document either using the main files support from the Project Explorer view, or using a validation scenario.
To set a main file using a validation scenario, add validation units that point to the main schemas. Oxygen XML Editor Eclipse plugin warns you if the current module is not part of the dependencies graph computed for the main schema. In this case, it considers the current module as the main schema.
- Correct validation of a module in the context of a larger schema structure.
- Content Completion Assistant displays all the referable components valid in the current context. This include components defined in modules other than the currently edited one.
- The Outline view displays the components collected from the entire schema structure.