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

Script: parameter-element

Any number of parameter elements may be children of a transformation-element.

  <parameter name="" value=""/>

The attributes are mandatory

name A string that matches the global parameter in the XSLT-file that realizes the transformation.
value The value, string, that you want to assign to the parameter.

Parameter elements may have no children.

Example:

<transformation name="SELECT_WHITE" location="transform/all.xslt">
  <parameter name="theSelection" value="white"/>
</transformation>

Note that you may also assign parameters to a transformation when it is used in a page- or content element. Assume that the transformation NTUT has been defined i a transfomation element:

<page name="RedItalian" template="P"
  location="RedItalianWines.html"
  transformation="NTUT(theCountry='Italia',theType='red')">
  <description>All Italian red wines </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