Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This example form definition (.xsf) file illustrates the use of the following features:
The dataObject element (section 2.2.1.2.17) specifies that it contains a data adapter that queries a list located at http://www.someserver.com with sharePointListID="{EFD22576-5D4F-40F9-80A5-DD53930974C4}", and that the ID, Modified and Created fields are read.
The documentSchemas element (section 2.2.1.2.41) specifies that there are two XML schema documents that are used to verify the form file.
The server element (section 2.2.2.2.2) specifies that the form template is not compatible with mobile Web browsers and that the form does not postback to the protocol server before submitting the form file.
The customValidation element (section 2.2.3.2.17) specifies that /my:myFields/my:field2 cannot be blank.
<?xml version="1.0" encoding="UTF-8"?> <!-- This file is automatically created and modified by Microsoft InfoPath. Changes made to the file outside of InfoPath might be lost if the form template is modified in InfoPath. --> <xsf:xDocumentClass trustSetting="automatic" solutionFormatVersion="3.0.0.0" solutionVersion="1.0.0.8" productVersion="14.0.0" publishUrl="http://www.someserver.com" name="urn:schemas-microsoft-com:office:infopath:browser:-myXSD-2009-05-05T20-26-38" xmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition" xmlns:xsf2="http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdUtil="http://schemas.microsoft.com/office/infopath/2003/xslt/Util" xmlns:xdXDocument="http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument" xmlns:xdMath="http://schemas.microsoft.com/office/infopath/2003/xslt/Math" xmlns:xdDate="http://schemas.microsoft.com/office/infopath/2003/xslt/Date" xmlns:xdExtension="http://schemas.microsoft.com/office/infopath/2003/xslt/extension" xmlns:xdEnvironment="http://schemas.microsoft.com/office/infopath/2006/xslt/environment" xmlns:xdUser="http://schemas.microsoft.com/office/infopath/2006/xslt/User" xmlns:xdServerInfo="http://schemas.microsoft.com/office/infopath/2009/xslt/ServerInfo" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-05T20:26:38" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls" xmlns:ma="http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes" xmlns:d="http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields" xmlns:q="http://schemas.microsoft.com/office/infopath/2009/WSSList/queryFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:dms="http://schemas.microsoft.com/office/2009/documentManagement/types" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xsf:package> <xsf:files> <xsf:file name="myschema.xsd"> <xsf:fileProperties> <xsf:property name="namespace" type="string" value="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-05T20:26:38"></xsf:property> <xsf:property name="editability" type="string" value="full"></xsf:property> <xsf:property name="rootElement" type="string" value="myFields"></xsf:property> <xsf:property name="useOnDemandAlgorithm" type="string" value="yes"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="template.xml"></xsf:file> <xsf:file name="sampledata.xml"> <xsf:fileProperties> <xsf:property name="fileType" type="string" value="sampleData"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="view1.xsl"> <xsf:fileProperties> <xsf:property name="lang" type="string" value="1033"></xsf:property> <xsf:property name="componentId" type="string" value="7"></xsf:property> <xsf:property name="xmlToEditName" type="string" value="2"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="Links.xsd"> <xsf:fileProperties> <xsf:property name="namespace" type="string" value="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"></xsf:property> <xsf:property name="dataObject" type="string" value="Links"></xsf:property> <xsf:property name="rootElement" type="string" value="myFields"></xsf:property> <xsf:property name="useOnDemandAlgorithm" type="string" value="yes"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="Links1.xsd"> <xsf:fileProperties> <xsf:property name="namespace" type="string" value="http://schemas.microsoft.com/office/infopath/2007/PartnerControls"></xsf:property> <xsf:property name="dataObject" type="string" value="Links"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="Links2.xsd"> <xsf:fileProperties> <xsf:property name="namespace" type="string" value="http://schemas.microsoft.com/office/2009/documentManagement/types"></xsf:property> <xsf:property name="dataObject" type="string" value="Links"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="Links3.xsd"> <xsf:fileProperties> <xsf:property name="namespace" type="string" value="http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields"></xsf:property> <xsf:property name="dataObject" type="string" value="Links"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="Links4.xsd"> <xsf:fileProperties> <xsf:property name="namespace" type="string" value="http://schemas.microsoft.com/office/infopath/2009/WSSList/queryFields"></xsf:property> <xsf:property name="dataObject" type="string" value="Links"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="upgrade.xsl"></xsf:file> <xsf:file name="gdotkota.xsd"> <xsf:fileProperties> <xsf:property name="dataObject" type="string" value="gdotkota"></xsf:property> <xsf:property name="rootElement" type="string" value="gergely"></xsf:property> <xsf:property name="useOnDemandAlgorithm" type="string" value="yes"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="gdotkota"> <xsf:fileProperties> <xsf:property name="fileType" type="string" value="resource"></xsf:property> </xsf:fileProperties> </xsf:file> <xsf:file name="BuiltInActiveXControls.xsd"> <xsf:fileProperties> <xsf:property name="namespace" type="string" value="http://schemas.microsoft.com/office/infopath/2007/PartnerControls"></xsf:property> <xsf:property name="editability" type="string" value="none"></xsf:property> </xsf:fileProperties> </xsf:file> </xsf:files> </xsf:package> <xsf:importParameters enabled="yes"></xsf:importParameters> <xsf:documentVersionUpgrade> <xsf:useTransform transform="upgrade.xsl" minVersionToUpgrade="0.0.0.0" maxVersionToUpgrade="1.0.0.6"></xsf:useTransform> </xsf:documentVersionUpgrade> <xsf:extensions> <xsf:extension name="SolutionDefinitionExtensions"> <xsf2:solutionDefinition runtimeCompatibility="client server" runtimeCompatibilityURL="http://www.someserver.com/_vti_bin/FormsServices.asmx" verifyOnServer="yes"> <xsf2:offline openIfQueryFails="yes" cacheQueries="yes"></xsf2:offline> <xsf2:server formLocale="en-US" isPreSubmitPostBackEnabled="no" isMobileEnabled="no"></xsf2:server> <xsf2:viewsExtension> <xsf2:viewExtension ref="View 1" designMode="normal"> <xsf2:xmlToEditExtension ref="field2_2" allowLinkedImages="yes" excludeEmbeddedImages="yes"></xsf2:xmlToEditExtension> </xsf2:viewExtension> </xsf2:viewsExtension> </xsf2:solutionDefinition> <xsf3:solutionDefinition xmlns:xsf3="http://schemas.microsoft.com/office/infopath/2009/solutionDefinition/extensions"> <xsf3:customValidation> <xsf3:errorBlank match="/my:myFields/my:field2" expressionContext="." expression="(. = "" or . = " ") and not(descendant-or-self::node()/*[name() = "img"])"></xsf3:errorBlank> </xsf3:customValidation> </xsf3:solutionDefinition> </xsf:extension> </xsf:extensions> <xsf:views default="View 1"> <xsf:view name="View 1" caption="View 1"> <xsf:mainpane transform="view1.xsl"></xsf:mainpane> <xsf:editing> <xsf:xmlToEdit name="field2_2" item="/my:myFields/my:field2"> <xsf:editWith type="rich" maxLength="1" component="xField"></xsf:editWith> </xsf:xmlToEdit> </xsf:editing> </xsf:view> </xsf:views> <xsf:applicationParameters application="InfoPath Design Mode"> <xsf:solutionProperties fullyEditableNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-05T20:26:38" lastOpenView="view1.xsl" lastVersionNeedingTransform="1.0.0.6"></xsf:solutionProperties> </xsf:applicationParameters> <xsf:documentSchemas> <xsf:documentSchema rootSchema="yes" location="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-05-05T20:26:38 myschema.xsd"></xsf:documentSchema> <xsf:documentSchema location="http://schemas.microsoft.com/office/infopath/2007/PartnerControls BuiltInActiveXControls.xsd"></xsf:documentSchema> </xsf:documentSchemas> <xsf:fileNew> <xsf:initialXmlDocument caption="browser" href="template.xml"></xsf:initialXmlDocument> </xsf:fileNew> <xsf:dataObjects> <xsf:dataObject name="Links" schema="Links.xsd" initOnLoad="yes"> <xsf:query> <xsf:sharepointListAdapterRW queryAllowed="yes" submitAllowed="no" siteURL="http://www.someserver.com" sharePointListID="{EFD22576-5D4F-40F9-80A5-DD53930974C4}" name="Links" contentTypeID="" sortBy="ID" sortAscending="yes" relativeListUrl="Lists/Links"> <xsf:field internalName="ID" required="no" type="Counter"></xsf:field> <xsf:field internalName="Modified" required="no" type="DateTime"></xsf:field> <xsf:field internalName="Created" required="no" type="DateTime"></xsf:field> </xsf:sharepointListAdapterRW> </xsf:query> </xsf:dataObject> <xsf:dataObject name="gdotkota" schema="gdotkota.xsd" initOnLoad="yes"> <xsf:query> <xsf:xmlFileAdapter fileUrl="x-soln:///gdotkota" name="gdotkota"></xsf:xmlFileAdapter> </xsf:query> </xsf:dataObject> </xsf:dataObjects> <xsf:customValidation></xsf:customValidation> <xsf:permissions> <xsf:allowedControl clsid="{61E40D31-993D-4777-8FA0-19CA59B6D0BB}"></xsf:allowedControl> </xsf:permissions> </xsf:xDocumentClass>