The <import-items>
tag is a procedural tag that can be used to add items to a repository in a more complex way than is possible using <add-item>
tags in a <transaction>
tag.
import-items Child Tags
The <import-items>
tag has no attributes and can have only <add-item>
tags as child tags. These <add-item>
tags are processed differently than ones in a <transaction>
tag in that they can have forward references. When the template is parsed, the parser makes three passes through the <add-item>
tags in an <import-items>
tag. On the first pass, the items are created. On the second pass, it sets required properties and properties that do not reference other items, then calls add-item. On the final pass, it sets any remaining properties and calls update-item if necessary.