2.2.2.2.1 solutionDefinition

The solutionDefinition element acts as the container for extensions to the properties and content of the form template.

This element MUST be the root element of all XSF2 extensions, as specified in section 2.2.2.

This element MUST be contained by the extension element, as specified in section 2.2.1.2.112.

This element also enables extending the form definition (.xsf) file with custom attributes not specified by this protocol document. Custom attributes MUST NOT be defined under the XSF, XSF2 or XSF3 namespaces (http://schemas.microsoft.com/office/infopath/2003/solutionDefinition, http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions, http://schemas.microsoft.com/office/infopath/2009/solutionDefinition/extensions respectively). Any custom attribute MUST be ignored.

Child Elements

autoUpdatePrompt

dataConnections

featureRestrictionsExtension

inputScopes

listPropertiesExtension

managedCode

mergedPrintView

offline

preview

sendByMail

server

solutionPropertiesExtension

submit

viewsExtension

warnings

Attributes:

allowClientOnlyCode: This attribute specifies whether a browser-compatible form template is designed to enable the inclusion of client-specific object model code that is not compatible with the protocol server. If this attribute is "yes", a warning MUST be generated when browser-enabling a form template containing incompatible code. If this attribute is "no", an error MUST be generated when browser-enabling a form template containing incompatible code.

description: This attribute is the description of the form template.

runtimeCompatibility: This attribute MUST be set to "client server".

runtimeCompatibilityURL: This attribute MUST be ignored.

solutionType: This attribute MUST be ignored.

verifyOnServer: This attribute MUST be ignored.

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

 <xsd:element name="solutionDefinition">
   <xsd:complexType>
     <xsd:all>
       <xsd:element ref="xsf2:server" minOccurs="0"/>
       <xsd:element ref="xsf2:solutionPropertiesExtension" minOccurs="0"/>
       <xsd:element ref="xsf2:mergedPrintView" minOccurs="0"/>
       <xsd:element ref="xsf2:offline" minOccurs="0"/>
       <xsd:element ref="xsf2:listPropertiesExtension" minOccurs="0"/>
       <xsd:element ref="xsf2:dataConnections" minOccurs="0"/>
       <xsd:element ref="xsf2:sendByMail" minOccurs="0"/>
       <xsd:element ref="xsf2:warnings" minOccurs="0"/>
       <xsd:element ref="xsf2:viewsExtension" minOccurs="0"/>
       <xsd:element ref="xsf2:preview" minOccurs="0"/>
       <xsd:element ref="xsf2:autoUpdatePrompt" minOccurs="0"/>
       <xsd:element ref="xsf2:inputScopes" minOccurs="0"/>
       <xsd:element ref="xsf2:managedCode" minOccurs="0"/>
       <xsd:element ref="xsf2:submit" minOccurs="0"/>
       <xsd:element ref="xsf2:featureRestrictionsExtension" minOccurs="0"/>
     </xsd:all>
     <xsd:attribute name="runtimeCompatibility" use="required">
       <xsd:simpleType>
         <xsd:list itemType="xsf2:compatibilityModesType"/>
       </xsd:simpleType>
     </xsd:attribute>
     <xsd:attribute name="solutionType" type="xsf2.2.2.1.4:solutionType" use="optional"/>
     <xsd:attribute name="description" type="xsf2.2.2.1.5:formDescriptionType" use="optional"/>
     <xsd:attribute name="allowClientOnlyCode" type="xsf:xdYesNo" use="optional" default="no"/>
     <xsd:attribute name="runtimeCompatibilityURL" type="xsd:string" use="optional"/>
     <xsd:attribute name="verifyOnServer" type="xsf:xdYesNo" use="optional"/>
     <xsd:anyAttribute processContents="skip"/>
   </xsd:complexType>
 </xsd:element>