2.2.123 view

The view element specifies information about a form view, which is a specific visualization of a form file. It specifies what controls are used to represent the fields in the form and how they are rendered using HTML. A form view is represented by an XSLT file, as specified in section 2.4.

A form view MUST be generated as specified by this element.

Parent Elements

views

Child Elements

editing

mainpane

menu

menuArea

printSettings

toolbar

unboundControls

Attributes:

caption: This attribute specifies the display name for the form view. If this attribute is not present, its value MUST be interpreted as an empty string.

designMode: This attribute specifies the state of the form view. A form view with a designMode value of "protected" MUST be ignored. There MUST be at least one form view with a designMode value of "normal".

name: This attribute specifies the name of the form view.

printView: This attribute specifies the name of another form view to be used for printing the form view. The specified value MUST match the name attribute of the view element of one of the view elements. If this attribute is not present, the current form view is used for printing.

showMenuItem: This attribute specifies whether the menu item corresponding to the form view is displayed in the menu of form views. If this attribute is not present, its value MUST be interpreted as "no".

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="view">
   <xsd:complexType>
     <xsd:group ref="xsf:ViewContent" minOccurs="0" maxOccurs="unbounded"/>
     <xsd:attribute name="caption" type="xsf:xdViewName"/>
     <xsd:attribute name="name" type="xsf:xdViewName" use="required"/>
     <xsd:attribute name="showMenuItem" type="xsf:xdYesNo" use="optional"/>
     <xsd:attribute name="printView" type="xsd:string"/>
     <xsd:attribute name="designMode" type="xsf:xdDesignMode"/>
   </xsd:complexType>
   <xsd:unique name="toolbar_name_unique">
     <xsd:selector xpath="./xsf:toolbar"/>
     <xsd:field xpath="@name"/>
   </xsd:unique>
   <xsd:unique name="menuArea_name_unique">
     <xsd:selector xpath="./xsf:menuArea"/>
     <xsd:field xpath="@name"/>
   </xsd:unique>
   <xsd:unique name="xmlToEdit_name_unique">
     <xsd:selector xpath="./xsf:editing/xsf:xmlToEdit"/>
     <xsd:field xpath="@name"/>
   </xsd:unique>
   <xsd:key name="xmlToEdit_name_key">
     <xsd:selector xpath="./xsf:editing/xsf:xmlToEdit"/>
     <xsd:field xpath="@name"/>
   </xsd:key>
   <xsd:keyref name="button_xmlToEdit_reference" refer="xsf:xmlToEdit_name_key">
     <xsd:selector xpath="./xsf:menuArea/xsf:button | ./xsf:menu/xsf:button | ./xsf:toolbar/xsf:button"/>
     <xsd:field xpath="@xmlToEdit"/>
   </xsd:keyref>
 </xsd:element>