Specifying General Information About Template

To compile a template, you must create a file where basic technical information about a template is stored. The file is named info.xml. It should be located in the template root directory.

The structure of the info.xml file is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<template id="yourCompany-business-001" version="1.0" caption="Business site" formatVersion="4" keywords=" business books" category="Business" >
  <themes default="yellow">
    <theme id="Green" caption="Green scheme"/>
    <theme id="Yellow" caption="Yellow scheme"/>
    <theme id="Orange" caption="Orange scheme"/>
  </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 template element has the following child elements: