Dynamic Properties

Top  Previous  Next

Almost all the properties of the elements can be defined dynamically. For example, the "Display If", the "Value" and the "Hyperlink | Value" properties of the text element below are assigned dynamic values.

DynamicProperties

This text element will be shown on the page only if the value of the XML node STOCK is greater that 0. The value of the text will be the value of the XML node PRODUCT_ID. There is also a dynamic hyperlink definition on the element. If, for example the value of the XML node PRODUCT_ID is 5 then the link value will be display.doms?pg=PageX&ID=5.

You may ask why we did not use a $vof() macro in "Display If" property. That is because, unlike the others, the "Display If" property expects an XSL test expression and therefore using a $vof() macro in it would create erroneous XSL instruction(s).