added logic for templateName to base templates

with the requisite matching templates for DocBook