There\'s something I don\'t fully understand about node cloning with the PHP\'s DOM api. Here\'s a sample file that quickly duplicates the issue I\'m coming across.
Use DOMDocument->importNode to import the node into the other document before adding it to the DOM.