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

PI: property

The purpose is to replace this PI with a property set in the script.

<?_wxt property name=""?>

A few default properties are available:

  • _pagename
  • _pagedescription
  • _pagefilename, short name (no path) of the pages filename
  • _pagethumb
  • _groupname
  • _groupdescription
  • _pageno, no of this page according to a preorder traversal within the group
  • _pagecount, number of pages in the group
  • _book, the book we want to associate this page to

A property PI will expand the properety as it is defined in the script. Assume:

    ...
    <property name="theAuthor">
    <author>
      <name>John Smith</name>
      <street>Elm st. 1</street>
    </author>
    </property>
    ...
<?_wxt property name="theAuthor"?>

will expand to:

<author>
  <name>John Smith</name>
  <street>Elm st. 1</street>
</author>

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


Bygget med WXT : 11.jan.2009