Generation of a base document.