Project | WXT | Basics | Download | Documentation | Samples

Script: definitions-element

The wscript-element must contain one and only one definitions element. The definitions element defines concepts which is used during a build process, like references, options, templates, transformations, commands, pathfragments, fragments.

<definitions anchor="" pubanchor="">
  ...
</definitions>
anchor (optional) A string that is a path to a catalog. This value is available as a predefined pathfragment _scriptanchor. Default value is the catalog that contains the script. The latter is also available as predefined pathfragment: _scriptcatalog.
pubanchor (optional) A string that is an url to the catalog where this site is (going to be) published. If defined, this is available as pathfragment: _pubanchor

The definitions element may contain any number of the following elements, in any order:

and one element of type: Logfile

Examples:

<definitions>
   <pathfragment id="commons" value="../commons"/>
   <template name="T" location="${commons}/p-template.xml"/>
</definitions>