File: IntroIPXMLWoRK_HV01098220.htm

package info (click to toggle)
office2003-schemas 1.0%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, sid, trixie
  • size: 42,304 kB
  • sloc: javascript: 2,429; makefile: 29
file content (22 lines) | stat: -rw-r--r-- 11,129 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01098220"><META NAME="lcid" CONTENT="1033"><title>InfoPath Schema Overview</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><p id="ExpandAllLine" class="ExpFav"><a href="#" onclick="ExpandAll()" onkeypress="ExpandAll()" class="DropDown"><img id="picHeader" border="0" src="expandtri.gif" alt="Show All"><span id="ExpandAll">Show All</span></a></p><h1>InfoPath Schema Overview</h1><p>Unique to InfoPath is the <a href="#" class="glossary" onclick="AppendPopup(this,'xdformdefinitionfilexsf')" onkeypress="AppendPopup(this,'xdformdefinitionfilexsf')">form definition (.xsf) file</a>. The .xsf file is an XML file with an .xsf extension that serves as the manifest of an InfoPath form. The manifest.xsf file can be considered the glue that holds together information about how the form is constructed, used, and deployed. The .xsf file is automatically created by InfoPath when you design a form, and it is packaged with the other form files into an .xsn file.</p><p>In general, the information that the .xsf files contains should only be created by InfoPath; however, you can make some modifications directly to the .xsf file to extend the functionality of a form. Because the format of the .xsf file is standard XML, it can be directly modified by any type of standard text editor such as Microsoft Notepad.</p><p><b>Note</b>  The InfoPath form definition file is discussed in more detail later in this article.</p><h3>The Form Files</h3><p>An InfoPath form is implemented by using a variety of different file types, collectively known as the <a href="#" class="glossary" onclick="AppendPopup(this,'xdformfiles')" onkeypress="AppendPopup(this,'xdformfiles')">form files</a>. The form files include all of the files used to construct an InfoPath <a href="#" class="glossary" onclick="AppendPopup(this,'xdformtemplate')" onkeypress="AppendPopup(this,'xdformtemplate')">form template</a>, which is an InfoPath file with an .xsn extension. The form files include the .xsf file, <a href="#" class="glossary" onclick="AppendPopup(this,'OfXmlSchemas')" onkeypress="AppendPopup(this,'OfXmlSchemas')">XML Schemas</a>, XML templates, and view, presentation, script, and custom business logic files.</p><p>The following table describes the form files and lists their extensions.</p><table><tr><th>Name</th><th>Extension</th><th>Description</th></tr><tr><td>Form definition</td><td>.xsf</td><td>An InfoPath-generated file that contains information about all of the other files and components used in a form. This file serves as the manifest for the form.</td></tr><tr><td>XML Schema</td><td>.xsd</td><td>The XML Schema files that are used to constrain and validate a form's underlying XML document files.</td></tr><tr><td>View</td><td>.xsl</td><td>The presentation style sheet files that are used to present, view, and transform the data contained in a form's underlying XML document files.</td></tr><tr><td>XML template</td><td>.xml</td><td>The .xml file that contains the default data that is displayed in a view when a new form is created.</td></tr><tr><td>Presentation</td><td>.htm, .gif, .bmp, and others</td><td>The files used to create custom user interface elements.</td></tr><tr><td>Business logic</td><td>.js, .vbs</td><td>The script files (JScript and VBScript) that contain programming code used to implement specific editing behavior, data validation, event handlers, control of data flow, and other custom business logic.</td></tr><tr><td>Binary</td><td>.dll, .exe</td><td>The custom Component Object Model (COM) components that provide additional business logic. These files are external to the form template file and must be registered separately.</td></tr><tr><td>Form template</td><td>.xsn</td><td>The compressed file format (.cab) that packages all the form files into one file.</td></tr></table><p><b>Note</b>  InfoPath automatically packages the InfoPath form files as an .xsn file, which is simply a CAB file that uses an .xsn extension. You can extract these files to a folder on your hard disk by clicking <b class="ui">Extract Form Files</b> on the <b class="ui">File</b> menu when designing a form.</p><h2>Overview of the InfoPath Form Definition File</h2><p>The InfoPath form definition (.xsf) file is the central file of a form: it contains information about how a form is put together, including the XML Schemas that it uses, the resource files that it contains, the event handlers that it implements, and a variety of other aspects related to its general operation and appearance.</p><h3>Form Definition File Customizations</h3><p>The .xsf file is an XML file that is created by InfoPath when you design a form and then continually updated as you make modifications to the form. For most tasks related to form design and development, it is best to let InfoPath create and maintain the .xsf file. However, to extend the functionality of a form, you can make some modifications to the .xsf file that are not available in InfoPath design mode.</p><p>The following are some of the more common modifications that you can make to the .xsf file:</p><ul><li>Extending the user interface by adding submenus to the menu bar and toolbars</li><li>Adding multiple script files</li><li>Creating fully trusted forms</li><li>Overriding default error messages</li><li>Adding extra print settings</li><li>Adding extra toolbars</li><li>Adding extra top-level menus</li><li>Creating buttons on menus and toolbars that call scripting functions</li></ul><h3>Form Definition File Key Elements</h3><p>The .xsf file contains a number of key elements that are used by InfoPath to store information about a form, and many of these key elements have other elements nested within them. The following table details some of these elements.</p><table><tr><th>Element</th><th>Description</th></tr><tr><td><b class="bterm">applicationParameters</b></td><td>Contains form-specific properties that describe how a form should be used in InfoPath design mode</td></tr><tr><td><b class="bterm">customValidation</b></td><td>Defines rule-based custom validation on top of all validation enforced through the XML Schema</td></tr><tr><td><b class="bterm">dataObjects</b></td><td>Defines all secondary data objects used in a form</td></tr><tr><td><b class="bterm">documentSchemas</b></td><td>Defines the XML Schemas that the form is designed to use</td></tr><tr><td><b class="bterm">documentSignatures</b></td><td>Defines the location of the digital signature XML DOM node within the form's underlying XML document</td></tr><tr><td><b class="bterm">documentVersionUpgrade</b></td><td>Defines how forms created with an older version of the form template can be upgraded to the latest version of the form template</td></tr><tr><td><b class="bterm">domEventHandlers</b></td><td>Contains pointers to various script-based event handlers that react to changes in the XML DOM nodes of a form's underlying XML document</td></tr><tr><td><b class="bterm">fileNew</b></td><td>Provides a reference to an .xml file containing sample data to be loaded when a user chooses to design a new form based on the form template</td></tr><tr><td><b class="bterm">importParameters</b></td><td>Contains all the parameters that define how the merge forms (import) feature works for the form</td></tr><tr><td><b class="bterm">listProperties</b></td><td>Identifies the properties that should be on a list view of all forms belonging to the form template</td></tr><tr><td><b class="bterm">package</b></td><td>Contains information about all of the files used in a form</td></tr><tr><td><b class="bterm">query</b></td><td>Associates a data adapter with a data object or a form's underlying XML document</td></tr><tr><td><b class="bterm">schemaErrorMessages</b></td><td>Contains custom error messages used to override XML Schema data type errors</td></tr><tr><td><b class="bterm">scripts</b></td><td>Defines the source of all business logic scripts used at the document level in the form</td></tr><tr><td><b class="bterm">submit</b></td><td>Contains information about the submission functionality of a form</td></tr><tr><td><b class="bterm">taskpane</b></td><td>Defines a custom task pane to be used in a form</td></tr><tr><td><b class="bterm">views</b></td><td>Defines all of the views that have been implemented in a form</td></tr></table><h3>Legal notice</h3><p>© 2003 Microsoft Corp. All rights reserved.            

</p><p>The information contained in this document represents the current view of Microsoft Corp. on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication.

</p><p>This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY AS TO THE INFORMATION IN THIS DOCUMENT.

</p><p>Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording or otherwise), or for any purpose, without the express written permission of Microsoft Corp.

</p><p>Microsoft may have patents, patent applications, trademarks, copyrights or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights or other intellectual property.

</p><p>Microsoft, InfoPath, and the Office Logo are either registered trademarks or trademarks of Microsoft Corp. in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.

</p><p>Microsoft Corp.• One Microsoft Way • Redmond, WA 98052-6399 • USA
</p><script type="text/javascript" language="JScript" src="ofvbanl.js"></script><span id="ofVBAISpan" class="ofvbaispan"><iframe id="ofVBAIFrame" frameborder="0" marginheight="0" marginwidth="4" scrolling="auto" width="100%" src="../links/ipsdkIntroducingInfoPathDevelopment_l.htm"></iframe></span><center><a href="XMLSchemaCopyright_HV01147162.htm">&copy;2003-2004 Microsoft Corporation. All rights reserved.</a>  

Permission to copy, display and distribute this document is available at: <a 

href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&amp;CTT=11&amp;Origin=HV011232471033" 

target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>