Export (0) Print
Expand All
Expand Minimize

innerFragment Attribute

Office 2007

Specifies a relative XPath expression from the parent node to the smallest fragment to be inserted.

Type

xsd:string

Parent Elements

ElementDescription
chooseFragmentSpecifies 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.

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> 


Community Additions

ADD
Show:
© 2014 Microsoft