December 2002
Intermediate to advanced
576 pages
32h
English
<xsl:variable>
The top-level <xsl:variable> element binds a
name to a value of any type (string, number, node set, etc.). The
value can then be dereferenced elsewhere in the style sheet using the
form $
name in attribute
value templates. Once a variable name has been assigned a value, it
cannot change. The select attribute is an optional
expression that sets the value of the variable. If
<xsl:variable> has a
select attribute, then it must be an empty
element.
<xsl:variable name="name" [select="expression"]> ... </xsl:variable>
Read now
Unlock full access