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

Script: commons-element

A group may have one child element of type common. The purpose is to tell WXT where to find common resources like logo's, stylesheets, etc. that normally will appear on pages located at different catalogs.

<commons name="" location=""/>

The attributes are mandatory

name Any string that will be used to identify common resources. Default value is "gfx".
location A grouprelative URI that tells where these resources are acually stored. Default value is "shared/".

Whenever WXT encounters a link that starts with the "gfx", "../gfx", ../../gfx etc., it will calculate the correct address to the catalog shared.

common elements may have no children.

Example:

<commons name="abc" location="mystuff/"/>

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


Bygget med WXT : 11.jan.2009