3. The "Declare Namespace" dialog box

This dialog box can be used

However, when the current document is conforming to a DTD, this dialog box can only be used to view the namespaces and their prefixes and not to edit them.

[Note]

This dialog box may display more namespaces than expected. These extra namespaces generally come from the template in XMLmind XML Editor - Configuration and Deployment used to create the document and/or the schema to which the document is conforming. However, when saving the document being edited, these namespaces are not necessarily all written to the save file.

Figure 9.5. The "Declare Namespace" dialog box showing extra namespaces for an XHTML document
The "Declare Namespace" dialog box showing extra namespaces for an XHTML document

Procedure for declaring a namespace

  1. You may have to clear the form by clicking on the Cancel button

  2. Specify the URI of the namespace in the Namespace field.

  3. Specify the prefix of the namespace in the Prefix field.

    Specifying a prefix is mandatory even if the namespace is to be marked as “default”.

  4. Optionally mark it as being the default namespace by checking the Default toggle.

  5. Type Enter in any field or click on the OK button.

Procedure for changing the declaration of a namespace

  1. Select the namespace declaration to be edited by clicking on its row in the table.

  2. Specify the prefix' of the namespace in the Prefix field.

    Specifying a prefix is mandatory even if the namespace is to be marked as “default”.

  3. Optionally mark it as being the default namespace by checking the Default toggle.

  4. Type Enter in any field or click on the OK button.