A language for generating documents from data