Linking Structure Templates
Once the XML file is correctly formatted, the structure template definitions must be linked to the locations of use before the templates may be used in a schema. The templates defined in XML can be made available to different areas of the program (i.e. scope) depending on where the link is created:
- Workspace: All Hardware Interface, Schema, and Sub-Schemas in that workspace can use the defined templates.
- Network: All network interfaces can use the defined templates. For Chameleon, this includes other modules in the same node as the network interface module.
- Hardware Interface File: All Schemas and Sub-Schemas used in the Hardware Interface File can used the defined templates.
- Schema File: Only operators in the schema can use the defined templates.
To create a link, right click on the desired link location and select 'Link Structure Libraries':
- Workspace: Right click on the word 'Workspace' in the workspace window file tab
- Network: Right click on the particular network in the workspace window network tab.
- Hardware Interface File: Right click on a device / module.
- Schema: Right click on white-space in the schema
In all cases, a dialog window similar to the following appears.
Click on Add and select the XML file to be linked.
Click Apply to complete the link. The libraries and structure templates appear on the right.