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

Script: pathfragment-element

The pathfragment element may contain a part of a path, typically a catalogpath. The defined fragment may be used in location attributes in the script.

<pathfragment name="" value=""/>

The attributes are mandatory

name The name of the fragment.
value A string which will be used as a fragment of a path.

pathfragment-elements may be children of the script-node or a group-node. Pathfragments may be used in any location-string in the script by enclosing it in {}.

The pathfragment: _scriptpath is allways available, and denotes the catalog where the script resides.

The pathfragment element may not contain any elements.

Examples:

<pathfragment name="_src" value="c:/myfiles/">
<pathfragment name="_src2" location="C:/myotherfiles/">

Examples of usage:

    ...
    <group name="mygroup" location="{_scriptpath}">
    ...
    </group>
    ...
    
    <content location="{_src}file1.xml">
     ...

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


Bygget med WXT : 11.jan.2009