Name
<xsl:value-of>
Calculates the value of an XPath expression, converts that value to a text node and then writes the value to the result tree.
Category
Instruction.
Required Attribute
selectThe XPath expression that is evaluated and written to the output.
[2.0] In XSLT 2.0, this attribute is optional. The
<xsl:value-of>element must have either aselectattribute or it must contain content. It is an error if it contains neither or both.
Optional Attributes
disable-output-escapingAn attribute that defines whether special characters are escaped when written to the output document. For example, if the literal text contains the character
>, it is normally written to the output document as>. If you codedisable-output-escaping="yes", the character>is written instead. The XSLT processor uses this attribute only if you use thehtmlorxmloutput methods. If you use<xsl:output method="text">, the attribute is ignored becasue output escaping is not done for thetextoutput method. See the “<xsl:text>” section for a more thorough discussion of thedisable-output-escapingattribute.[2.0] In XSLT 2.0, this attribute is deprecated. You should use a character map instead; see the discussion of the [2.0]
<xsl:character-map>element for more information.- [2.0]
separator Defines the characters that separate multiple values generated by the
selectattribute. The default value is a single space (#x20). The value of theseparatorattribute appears after all of the values except the last.
Note
Be aware ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access