allow merging two documents with similar namespaces
generator