Item type examples
This section provides examples of <ItemType>.
Example 1
In the following example, if a Folder contains Metadata the item XML will be translated and no stitching will be performed. If a Folder does not have Metadata, the Title will be translated through stitching.
<ItemType type="2" fileExtension="FOL">
<Includes>
<Include id="title" aggregate="true">/tcm:Folder/tcm:Data/tcm:Title</Include>
<Include id="meta" aggregate="false">/tcm:Folder/tcm:Metadata//*[@* or text()]</Include>
</Includes>
</ItemType>
Example 2
In the following example, if a Folder contains Metadata the item XML will be translated. If no Metadata is present, nothing from the folder will be translated.
<ItemType type="2" fileExtension="FOL">
<Includes>
<Include id="meta" aggregate="false">/tcm:Folder/tcm:Metadata//*[@* or text()]</Include>
</Includes>
</ItemType>
Example 3
In the following example, if the Component contains either Metadata or Content the item XML will be translated. If neither is present nothing from the component will be translated.
<ItemType type="16" fileExtension="CMP">
<Includes>
<Include id="content" aggregate="false">/tcm:*/tcm:Data/tcm:Content//*[@* or text()]</Include>
<Include id="meta" aggregate="false">/tcm:*/tcm:Data/tcm:Metadata//*[@* or text()]</Include>
</Includes>
</ItemType>