logo
WXT, a Web and Xml Tool
from Ostfold College
: Introduction > Documentation > The Script >Template

Script: template-elements

A template element identifies a template, it maps a name to a location. A template element may appear as child of a group or as child of the script. In the latter case it must have an absolute location.

  <template name="" location="" transformation=""/>

The attributes are:

name(mandatory) Any string that identifies the template. This name may be used when assigning a template to a page.
location(mandatory) An URI which may be absolute (file or http) or a relative to the owning groups location. The template will read from this location.
backup(optional) An URI which will serve as an alternative location if the URI in location is unavalable.
transformation (optional) A transformation identifier (see: transformation-element) or a grouprelative or absolute location for a transformationfile. You may use parameters in the transformation. This transformation is applied to the template before is is used to build a page.

A template element may have no children.

Example:

<template name="P" location="templates/p-template.xml"/>

WXT, a Web and Xml Tool from Ostfold College: http://www.ia.hiof.no/~borres/wxtdoc/


Bygget med WXT : 11.jan.2009