December 2002
Intermediate to advanced
576 pages
32h
English
<xsl:value-of>
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.
<xsl:value-of select="expression">
[disable-output-escaping="yes|no"]/>Read now
Unlock full access