2.2.124 xmlToEdit

The xmlToEdit element specifies additional properties of a control that is used in the form view to edit the form file.

Parent Elements

editing

Child Elements

editWith

Attributes:

container: This attribute specifies an XPath expression that evaluates to the context in which the control MUST be selectable and enabled.

item: This attribute specifies an XPath expression that MUST evaluate to the XML nodes to be edited with the control. The specified XPath expression MUST be unique among all xmlToEdit elements in the form definition (.xsf) file.

name: This attribute specifies the name of the control.

viewContext: This attribute specifies the identifier of the corresponding control in the form view. If this attribute is not present, its value MUST be interpreted as an empty string.

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

 <xsd:element name="xmlToEdit">
   <xsd:complexType>
     <xsd:sequence>
       <xsd:element ref="xsf:editWith" minOccurs="0" maxOccurs="1"/>
     </xsd:sequence>
     <xsd:attribute name="name" type="xsd:NMTOKEN" use="required"/>
     <xsd:attribute name="item" type="xsd:string" use="required"/>
     <xsd:attribute name="container" type="xsd:string"/>
     <xsd:attribute name="viewContext">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:pattern value="((\.|\#|[a-zA-Z0-9_])[a-zA-Z0-9_]*)(\s((\.|\#|[a-zA-Z0-9_])[a-zA-Z0-9_]*))*"/>
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:attribute>
   </xsd:complexType>
 </xsd:element>