innerFragment Attribute
Specifies a relative XPath expression from the parent node to the smallest fragment to be inserted.
Type
xsd:string
Parent Elements
Element | Description |
---|---|
chooseFragment | Specifies an XML fragment. |
Definition
<xsd:attribute name="innerFragment" type="xsd:string" use="optional" ></xsd:attribute>
Remarks
The innerFragment attribute is used to identify the position of the current data context within the fragment, and to choose the right subtree to insert. This reduces the need to define multiple fragments in the form definition file (.xsf) for different data contexts.
Note This item is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.
Example
The following is an example of the innerFragment attribute as it is used in the chooseFragment element:
<xsf:xmlToEdit name="expense_1" item="/my:myFields/my:expenses/my:expense" container="/my:myFields" >
<xsf:editWith caption="expense" component="xCollection">
<xsf:fragmentToInsert>
<xsf:chooseFragment innerFragment="my:expenses/my:expense" >
<my:expenses>
<my:expense/>
</my:expenses>
</xsf:chooseFragment>
</xsf:fragmentToInsert>
</xsf:editWith>
</xsf:xmlToEdit>