Modifying templates so the xml.relation service works