head - вывод стандартной заголовочной информации html-страницы.
main - Обозначение основной области страницы. Необходим для правильной работы при создании новых страниц и выбора шаблона страницы.
tohead - содержимое этого тега добавляется в вывод тега head
<?xml version="1.0" encoding="utf-8"?> <t:templates xmlns:t="/templates/ns" xmlns="http://www.w3.org/1999/xhtml"> <t:template id="index"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <t:head /> <link type="text/css" rel="stylesheet" href="/style.css" /> <script type="text/javascript" src="/script.js"> </script> </head> <body> [внешнее оформление] <t:main /> [внешнее оформление] </body> </html> </t:template> <t:template id="template1"> <t:tohead><script type="text/javascript" src="/template1_functions.js"> </script><t:/tohead /> . . . </t:template> </t:templates>