The XTT Editing Panel

The XTT editing panel consists of two views: the design view and the source view. The design view contains the XTT object tree and is displayed by default when an XTT is created or opened. The XTT object tree is a logical representation of the XTT file itself, which is a well-formed XML document. The XTT object tree consists of five types of elements, described in Table.

XTT object type

Tree node name

Content description

<xtt:template>

xtt:template

(none)

<root>

root

(none)

<xtt:attribute>

value of attribute 'name'

value of attribute 'value'

user-defined element without query or text value

element's tag name

(none)

user-defined element with query

element's tag name

value of attribute 'xtt:query' + '='

+ value of attribute 'xtt:command'

user-defined element with text value

element's tag name

value of attribute 'textvalue'

Table: Element types in the XTT object tree.

The five XTT element types as they appear in the design view are illustrated in Table.

Table: Design view of element types in the XTT object tree

To select an XTT tree object, left-click on it, and it will be highlighted in blue. If you right click on the design view, a pop-up menu will appear depending on the object that is highlighted. Right-clicking on an object will not cause it to be selected. Table summarizes the pop-up menu contents for different selected elements.

Node type

Pop-up menu

<xtt:template>

N/A

attribute

  • 'Change to ELEMENT' - the selected attribute node will be replaced by an element with the same name. The data in the value attribute will be copied to the textvalue attribute of the new element
  • Cut - same as ctrl-X
  • Copy- same as ctrl-C
  • 'Remove' - removes the current selected node from the tree

user-defined element

  • Element - creates a new element below the selected element. Whether the new element is inserted as a sibling or child element depends on whether the Insert as Child or Insert as Sibling option has been selected
  • Attribute - creates a new attribute for the selected element
  • 'Change to ATTRIBUTE' - only provided if the object has no sub node (either attribute or element). The selected element will be replaced by an attribute with the same name. The data in textvalue will be copied to the value attribute of the new attribute
  • Cut - same as ctrl-X
  • Copy - same as ctrl-C
  • Paste - same as ctrl-V
  • 'Remove' - to remove the current selected node from the tree

user-defined element without query or text value

(none)

user-defined element with query

value of attribute 'xtt:query' + '='

+ value of attribute 'xtt:command'

user-defined element with text value

value of attribute 'textvalue'

Table : pop-up menus available in the XTT editing panel design view

The Source tab displays the source code for the XTT file.