The xsf:package Element

 <  Day Day Up  >  

The <xsf:package> Element

The xsf:package element and its descendant elements specify the files that make up the form template, whether those are unpacked in a Windows folder or packed in an .xsn file.

The <xsf:files> Element

The only child element of the xsf:package element is the xsf:files element. The xsf:files element has no attributes, and its child elements consist of one or more xsf:file elements.

The <xsf:file> Element

The xsf:file element is a child element of the xsf:files element. There is an xsf:file element for each file that forms part of the form template, such as each XSLT file.

The xsf:file element has one attribute:

  • name ” Specifies a URL, often a relative URL, which is the name of the file.

The xsf:file element has one child element:

  • xsf:fileProperties ” Has optional child xsf:property elements.

Each xsf:property element has three required attributes:

  • name ” Specifies the name of the property.

  • type ” Specifies the W3C XML Schema data type of the property.

  • value ” Specifies the value of the property.

Putting those pieces of information together for a form template that has an XSLT file named QueryView.xsl and uses North American English, we would have an xsf:files element that looks like this:

 <xsf:files>  <xsf:file name="QueryView.xsl">  <xsf:fileProperties>   <xsf:property name="lang" type="string" value="1033"/>  </xsf:fileProperties>  </xsf:file>  <!-- Other <xsf:file elements could go here. --> </xsf:files> 

Next we will look at the elements in the manifest file that specify characteristics of views in the form template.

 <  Day Day Up  >  


Microsoft Office InfoPath 2003 Kick Start
Microsoft Office InfoPath 2003 Kick Start
ISBN: 067232623X
EAN: 2147483647
Year: 2004
Pages: 206

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net