Name
<xsl:value-of>
Synopsis
<xsl:value-of select=”expression
“>
[disable-output-escaping="yes|no"]/>
This extracts a specific value from a source tree. The select
attribute is a single pattern-matching expression that resolves
to the value of a string, an element, or an attribute:
<xsl:template match="index"> This index is <xsl:value-of select="@(type)"> <xsl:apply-templates/> </xsl:template>
The select
attribute extracts the value
of an element or attribute in the source tree and prints it
verbatim in the result tree. XML special characters
(such as &
and <
)
included in the content of this element are escaped (i.e.,
replaced by character entities) in the output by default. The
attribute disable-output-escaping
can be
set to yes
to disable this behavior.
Get XML Pocket Reference, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.