def clone_and_transform_each(collection, &block)
      collection.inject(element_to_clone) do |sibling, item|
        item_element = clone_with_item(item, &block)
        sibling.add_next_sibling(item_element)
      end
    end
def clone_and_transform_each(collection, &block)
      collection.inject(element_to_clone) do |sibling, item|
        item_element = clone_with_item(item, &block)
        sibling.add_next_sibling(item_element)
      end
    end
Creates a clone for each item in the collection and yields it for
 transformation along with the corresponding item. The transformed clones
 are inserted after the element to clone.
 @param [Array] collection data that cloned elements should be transformed with
 @yield [Nokogiri::XML::Node] the cloned element
 @yield [Object] an item from the collection