value

The value statement evaluates and returns an XPath string.

Syntax
<value> ::= “value” ( “disable-output-escaping” )? <quote> <xpath expression> <quote>
Options
disable-output-escaping specifies whether special characters are escaped when written to the output. For example, if present, "<div>" would be output as "&lt;div&gt;"..
Elements

None.

Examples
variable var-1 { value "'Some text'" } variable var-2 { value "$var-1" }

will compile to

<variable name="var-1"> <value-of select="'Some text'"/> </variable> <variable name="var-2"> <value-of select="$var-1"/> </variable>

Note that there is no enclosing block and an error will thrown if one is given. Also remember that the above could be written as

constant var-1 { value "'Some text'" } constant var-2 { value "$var-1" }
Copyright 2024 Hugh Field-Richards. All Rights Reserved.