Valueof
Elements
The XFL valueof element outputs values as text to an XFL document. It can output values from the data document and XFL variables.
Dissection of the XFL If Element
Syntax
Attributes
| Attribute | Value | Description | Required |
|---|---|---|---|
| select | XPath expression | XPath expression to retrieve value from the data document | ![]() |
Basic Example
The following example shows how a value can be outputed from the data document.
Source Array:
[name] = 'Tony Pulis Action Doll' [price] = 12.99
XFL Fragment:
HTML Output:
Variable Example
The following example shows how a value can be outputed from an XFL variable.
Source Array:
[price] = 29.99
XFL Variable:
$name = 'Tony Pulis Action Doll'
XFL Fragment:
HTML Output:
