Emitting rules at the root of the document