Support for <template ref="templateId">.