The info.xml file, which contains important technical information about the template, should be placed into the Template folder.
The structure of the info.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<template id="yourCompany-business-001" version="1.0" caption="Business site" keywords=" business books" category="Business" >
<themes default="yellow">
<theme id="green" caption="Green theme"/>
<theme id="yellow" caption="Yellow theme"/>
<theme id="orange" caption="Orange theme"/>
</themes>
<compatibility>
<screen>
<minwidth>800</minwidth>
</screen>
<browsers>
<browser>MS IE 6.0</browser>
<browser>Mozilla FireFox 1.5</browser>
<browser>Opera 8</browser>
</browsers>
<modules>
<module>Blog</module>
<module>ImageGallery</module>
</modules>
</compatibility>
</template>
The first line, called XML declaration, defines the version of XML and the charset used in the document.
The root element of the document is template. It has the following attributes:
The id attribute contains the name of a template. The name of a template must start with the name of your company, so that the template would be easily identified in SiteBuilder. The template name should coincide with the name of the directory containing the template content.
The version attribute contains the template version.
Version number consists of 2 digits:
The caption attribute contains the description of a template. This can be any text of your choice, e.g. "Travel company".
The keywords attribute contains the list of keywords of a template. This can be any text of your choice, e.g. "business books". This attribute is optional.
The category attribute specifies the category a template belongs to, e.g. "Business". It may contain blank value or be absent.
The template element has child elements. A child element of the themes element is an element that has the same number as a color theme in the template.
The theme elements should contain two attributes:
idcaptionThe caption attribute contains a description of the color theme. This can be any text of your choice, e.g. "Green color theme".
The template element has a child element - compatibility.
The child element of the compatibility is screen, and its child element is minwidth, which contains minimal width of a template without horizontal scrolling.
The compatibility element has child element - browsers. The browsers element contains the list of browsers compatible to the template, and their versions.
The compatibility element has child element – modules. The modules element contains the list of modules supported in this template.
List of possible values: