Add Bundle and namespace to the document