The Table of Contents File

by Andreas Hartmann

The file toc.xml in the documents-folder provides the document structure of the whole site. It uses the following syntax:

<?xml version="1.0" encoding="ISO-8859-1"?>
            
  <site:site
      xmlns:site="http://www.bonebreakerbikes.com"
      xmlns:xlink="http://www.w3.org/1999/xlink">
    
      <site:section name="home">
        <site:title>Homepage</site:title>
      </site:section>
    
      <site:section name="cc">
        <site:title>Cross Country</site:title>
        <site:page xlink:href="thighbreakerteam.bike">Thighbreaker Team</site:page>
        <site:page xlink:href="thighbreakerpro.bike">Thighbreaker Pro</site:page>
        <site:page xlink:href="thighbreakercomp.bike">Thighbreaker Comp</site:page>
      </site:section>
    
      <site:section name="fr">
        <site:title>Freeride</site:title>
        <site:page xlink:href="neckbreaker.bike">Neckbreaker</site:page>
      </site:section>
    
      <site:section name="dh">
        <site:title>Downhill</site:title>
        <site:page xlink:href="backbreaker180.bike">Backbreaker 180</site:page>
        <site:page xlink:href="backbreaker240.bike">Backbreaker 240</site:page>
      </site:section>
    
      <site:section name="company">
        <site:title>Company</site:title>
        <site:page xlink:href="philosophy.page">Our philosophy</site:page>
        <site:page xlink:href="jobs.page">Jobs</site:page>
        <site:page xlink:href="contact.page">Contact us</site:page>
      </site:section>
    
      <site:section name="links">
        <site:title>Links</site:title>
        <site:page ext="true" xlink:href="http://www.mtbr.com">MTB Review</site:page>
        <site:page ext="true" xlink:href="http://www.bike.com">bike.com</site:page>
      </site:section>
    
  </site:site>

A site contains of several sections. A section has a unique name attribute and contains a title tag and several page tags. Each page has a reference to a file and a page title that is displayed in the navigation menu. The pages in the "links" section contain an additional ext="true" attribute that indicates a link to an external page.