Added templates for the "bookref" and "footref" elements.