April 2001
Intermediate to advanced
112 pages
2h 15m
English
<xsl:value-of>
<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.
Read now
Unlock full access