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

Script: content-element

A page page is populated by content. A page may have any number of content-, textcontent- or dbcontent elements.

  <content location="" transformation=""/>

A content element has the following attributes:

location(mandatory) An URI which may be absolute (file or http) or a relative to the owning groups location. The content will be 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 content before is is used to build a page.

A content element can not have any children.

Example:

  <content location="blocks/b-p2.xml"/>

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


Bygget med WXT : 11.jan.2009