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

PI: demoref

demoref produce a refrence to a file. This reference will lokk different on screen than on paper. On paper it will an absolute reference. This element is handy when you want to make links to demopages of som ekind. Sort of "sidebar"-material.

<?_wxt demoref uri="" text="" demostart=""?>

The parameters are:

uri (mandatory) An absolute href or a href relative to the group, the page or a contentfile
text (optional) The text that will appear on the screen. If omitted the URI will be shown.
demostart (optional) The text that will appear before the URL on print. Default value is "DEMO: ".

Expected behaviour is depending on the pubaddress-attribute in the group - element.

Some examples:

<?_wxt demoref uri="myfile.html" text="See this example" ?>

<?_wxt demoref uri="yourfile.html" text="See this example" demostart="Link to demo" ?>

<?_wxt demoref uri="http://www.ia.hiof.no/~borres/self/bs.gif" text="Nice guy"?>

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

  • demo-div wrapping the element
  • demo-link the link
  • demo-screen the text associated with the link that will appear on screen
  • demo-print the text associated with the link that will appear on print

You must define media screen and media print in the stylesheet and turn visibility on and off on the two: demo-screen and demo-print.

See Styling

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


Bygget med WXT : 11.jan.2009