xsl:value-of
<xsl:value-of
select = "expression
"
disable-output-escaping = "yes" | "no" />
The xsl:value-of
element computes the string-value of an XPath
expression and inserts it into the result tree. The string-values
of the seven different kinds of nodes are as follows:
The text content of the element after all entity references are resolved and all tags, comments, and processing instructions are stripped
The text of the node
The normalized value of the attribute
The value of the root element
The processing instruction data (<?
, ?>
, and the target are not
included)
The text of the comment (<!--
and -->
are not included)
The namespace URI
You can compute values of things that aren't nodes. The
value of a node-set is the value of the first node in the set. The
value of a string expression is the string. The value of a number
expression is the string form of the number. The value of a
Boolean expression is the string true
if the Boolean is true or the
string false
if the Boolean is
false.
select
,
requiredThis is the XPath expression whose value is inserted into the result tree.
disable-output-escaping
,
optionalIf this attribute has the value yes
, then when the output document
is serialized, characters such as <
and &
in the value are not
replaced with entity or character references. This may
result in a malformed document.