2.2.1.2.88 chooseFragment

The chooseFragment element specifies an XML fragment. An XML fragment is an XML sub-tree that is intended to represent a unit of data. It is used for data insertion and replacement operations.

Parent Elements

fragmentToInsert

Attributes:

followingSiblings: This attribute specifies a relative XPath expression from the parent node. The parent node specifies the XML node prior to which the insertion of the XML fragment occurs. If the node is not found, the insertion action MUST be an append. If this attribute is not present, its value MUST be interpreted as an empty string.

innerFragment: This attribute specifies a relative XPath expression from the parent node to the smallest fragment to be inserted. If this attribute is not present, its value MUST be interpreted as an empty string (1).

parent: This attribute specifies a relative XPath expression from the container node that specifies the XML node under which the XML fragment MUST be inserted. If this attribute is not present, its value MUST be interpreted as a period (".").

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="chooseFragment">
   <xsd:complexType mixed="true">
     <xsd:sequence>
       <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
     </xsd:sequence>
     <xsd:attribute name="parent" type="xsd:string"/>
     <xsd:attribute name="followingSiblings" type="xsd:string" use="optional"/>
     <xsd:attribute name="innerFragment" type="xsd:string" use="optional"/>
   </xsd:complexType>
 </xsd:element>