[На главную] [К оглавлению раздела]

head, main, tohead

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">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
&lt;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>
&lt;/html>
</t:template>

<t:template id="template1">
	<t:tohead><script type="text/javascript" src="/template1_functions.js"> </script><t:/tohead />
	. . .
</t:template>

</t:templates>

[На главную] [К оглавлению раздела] [Вверх]