Element Context Menus

The tree view in the Export Template view for XHTML represents a real-time DOM tree. Each XHTML element of the tree in the Header and Detail sections has a pop-up menu. The pop-up menu items perform DOM-based actions for modifying the structural layout of the XHTML document that will be generated. The menu options include:

Menu item

DOM-based action

Edit

DOMNode::SetNodeName

Add Child

DOMNode::AppendChild

Insert Before

DOMNode::InsertBefore

Delete

DOMNode::RemoveChild

DOM-based actions

The Edit menu item allows you to change the label of the tree view item representing the XHTML element name. All element items that display no attributes, as well as literal text nodes selected in the tree view, can also be edited with a single mouse-click or with the shortcut key F2.

Add Child allows you to append an entity as a last child.

The submenu option DataWindow Control Reference invokes a dialog box in which you can select from a filtered list box of Column, Computed Field, and Text controls. You can also add control references to empty attribute values or element contents using drag-and-drop from the Control List View.

The submenu option DataWindow Expression opens the Modify Expression dialog box so that you can compose an expression. DataWindow column references (in the form of expressions) can also be added using drag-and-drop from the Column Specification View.

All tree view items except the <form> element can be deleted using the Delete menu item or the Delete key.

Presentation and function

The remaining context menu items invoke dialog boxes that allow you to override presentational and functional specifications of each element. These include:

The dialog boxes first display these specifications as they would be generated at runtime by default. The painter gets these from the XML Web Generator in real time and displays them on the left side of the dialog box. You can use the input fields on the right side of the dialog box to override these specifications at the atomic declaration or attribute level. This applies to resetting included declarations and attributes, setting declarations and attributes that were not included, or removing declarations and attributes. These changes persist in the XHTML export template and they are applied to the default presentation generated by the XML Web Generator at runtime.