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

PI: ref

ref produce a simple ref-element and introduce it to a reflist.

See also: reflist

<?_wxt ref uri="" fields="" listname="" category="" display="" delimiter=""?>

The parameters are:

delimiter (optional) Alternative to | as a list separator in lists in this element. Default is |
fields (mandatory) A delimiter-separated list of simple text strings.
uri (optional) An uri to the resource we want to link to, if any.
listname (optional) A delimiter-separated list of names of the lists we want to include this reference in. The name _footnote is reckognized as the name of the page, and should be matched with listname _footnote in a reflist-PI on the same page, if you want to collect all references at a page in a list. Default is "_main".
category (optional) The category of the ref. You are free to name categories at will. Default is "*".
display (optional) This controls the way the reference is displayed. Possible values are:
  • none. The reference is not displayed
  • simple. The refrenece is displayed as a "ref to footnote way": [n].
  • full. With link, if any or first field, if no link.
  • prefix. First field is prefixing link, no effect if no link.
. Default is simple.

Some examples:

<?_wxt ref uri="http://www.w3schools.com/htmldom/" fields="W3org|HTML DOM Tutorial" category="DOM"?>

<?_wxt reflist listname="_main" category="DOM"?>

<?_wxt ref uri="http://www.w3schools.com/htmldom/" listname="_footnote|_main" fields="HTML DOM Tutorial" category="DOM"?>

<?_wxt reflist listname="_footnote" category="DOM"?>
<?_wxt ref fields="Håkon Wium Lie & Bert Bos|
                   Cascading Style Sheets|
                   Addison Wesley|
                   1999|
                   0-201-59625-3|
                   Cover CSS1 and CSS2" 
               category="book"
               display="simple"
               listname="_footNote|_main"?>

The involved style-classes in a reference and a referenselist are:

  • external mark a reference as external
  • reflist_ul styling the ul-element in a reflist.
  • reflist_li styling the li-element in a reflist.
  • nolink_span styling a simple [] .
  • ref_field_n where n is a number in the range [0..m], m is the maximum number of fields you plan to use in a ref field.
  • ref_link styling all links in a reference list.
  • external styling an absolute link in a reference list.

See Styling

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


Bygget med WXT : 11.jan.2009