TemplatingTemplating in Without knowledge of Style selectorBut first we need to focus on an important environment variable that gives what templates that will be used. If you havn't set the environment variable called "XSITE_LAYOUT", it will default to, as you might expect, "default". (This is done in the "go" command explained under <item id="tm" name="Topic maps" /> And here is an example of a page that will be rendered with the "default-two-columns.xml" template; <item id="people-johannesen" name="Alexander Johannesen" template="default-two-columns" /> And here is an example of a page that will be rendered after the set style environment variable template rule, which, if "XSITE_STYLE" is set to "yallamaloo", will mean "yallamaloo-two-columns" ; <item id="people-johannesen" name="Alexander Johannesen" virtual-template="two-columns" /> The reason for the virtual templates is to provide a mechanism for creating various drastically different designs / layouts based on the same content and sitemap files. More on this later. default.xmlThe most common used template, simply by carrying the name of the default style, will work as our example file; <page> ___ <header> ___ ___ <logo /> ___ ___ <crouton /> ___ </header> ___ <body> ___ ___ <relations /> ___ ___ <content /> ___ ___ <resources /> ___ </body> ___ <footer /> </page> Every template starts with the <page> element, which is the root element. Then you can choose wheter it should have a header, body or a footer in it, and then, what elements that should be in each of these (or none, as demonstrated by the <footer /> element; empty element). Most of the elements in these templates calls up their respective |

xSiteable