// would probably result in an infinite loop as the iteration processor
// would be applied once and again. Instead, we create iterated elements
// with a new name (iteratedElementName).
if (iteratedElementName == null) {
throw new TemplateProcessingException(
"Cannot specify null iterated element name if the host iteration element is not being removed");
}
iterElement = element.cloneElementNodeWithNewName(parentNode, iteratedElementName, false);