viv:eval-attribute

evaluates a string containing XPaths, like an attribute can in an XSL stylesheet

Synopsis

string
	viv:eval-attribute
	(str);
string    str;

Description

Evaluates a string containing XPaths, like an attribute can in an XSL stylesheet.

Arguments

  • str: string to evaluate like an attribute

Returns

a string with all embedded XPaths evaluated.

Example

    <xsl:variable name="feature" select="'river'" />
    <xsl:variable name="obstacle" select="'woods'" />
    <xsl:value-of select="viv:eval-attribute('Over the {$feature} and through the {$obstacle}.')" />