Library for generating XML documents from RDF data using templates