Fixed a problem with xml processing instructions in template files