Returns the string value that is the outcome of evaluating an XPath expression in the context of the <pc:value-of> directive itself (Examples 1, 2), or that is the return value of a Blend directive (Example 3).
Either the select attribute, or the xml-content child element(s), or both must be present.
If the select attribute is present, its value identifies the XPath expression to be evaluated. This XPath expression may involve, or consist of, a call to a Blend function.
For disable-output-escaping, see the section at the end of this help topic.
The result value of the following statement is xyz:
The result value of the following statement is xy:
The result value of running the following Blend script is the name TRAVEL:
Disabling output escaping
Because pc:value-of is based on XSLT 1.0's <xsl:value-of> instruction, you can pass the attribute setting:
with the same effect. This setting disables the normal output escaping of markup characters when the output is serialised text. Consider carefully if this is what you want. As the XSLT 1.0 specification puts it:
"Since disabling output escaping ... can result in XML that is not well-formed, it should be used only if there is not alternative."
If the content of the file "mydata.xml" is:
then the following:
but the following: