Namespaces View

Namespaces are a necessary evil within the XML standard. They allow each element and attribute to belong to a namespace. This means that the same basic name can be used in many namespaces without apparent confusion?

CAM requires all the namespace declarations to be Global, i.e. they must be associated with the CAM element. To make this simple the editor uses a view to manage all the namespaces seen within the template. When including xml files or creating new template from XML the namespaces view will be populated with the list of found namespaces. CAM like XSLT can not support anonymous namespaces. Therefore the process of reading the file will assocate any anonymous namespaces with a dummy prefix of asn where the n is a numeric value.

It is possible to add a namespace from either the namespaces view or the structure view.

The view has two columns:

  1. Prefix is the short prefix associated with the namespace. This will be used in the Structure view.
  2. URI is the Univeral Resource Identifier associated with the namespaces. Generally these should eb unique within any example.

In this view the CAM namespaces is shown and can not be removed or edited. Namespaces can not be removed using the CAM editor. The prefix and URI can be changed, although it is not recommended after rules have been created.

Using the Add Namespace context option brings up the following dialog:

This dialog will enforce the format prefix=uri and will not allow duplicate namespaces.