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

Script: page-element

A group element may contain any number of page elements and a page element may contain any number of page elements. A page is the main building block in WXT. A page is normally produced by populating a template with material from content files.

  <group name="" location="" template="" transformation="">
    <description>...</description>
    <content location=""/>
    ...
  </group>

A page element has the following attributes:

name(mandatory) Any string that identifies the page. This name will appear in TOCs etc.
location(mandatory) An URI which may be absolute (file) or a relative to the owning groups location. The page will be written to this location.
template(mandatory) A template identifier (see: template-element) or a location for a template. The location must be absolute or relative to the groups address.
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 page as the last operation before it is written.
book(optional) The book(s) we want to associate this page to. A comma-separated list of strings. May be used in PI-collect

A page element may contain any number of the following elements:

Examples:

<page name="Audience" template="P" location="pub/who.html">
  <description>Who is WXT made for</description>
  <content location="content/b-who.xml"/>
</page>
...
<page name="All White Wine"
          template="source/allwines.xml"
          location="source/allwhitewine.xml"
          transformation="SELECT(theSelector='white')"/>
...
<page name="Red Italian Wine" template="P"
      location="RedItalianWines.html"
      transformation="NTUT(theCountry='Italia',theType='red')">
  <description>All Italian red wines in XHTML-format</description>
  <content location="source/allwines.xml"/>
</page>

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


Bygget med WXT : 11.jan.2009