<xsl:value-of> Element
In the above syntax:
select: Retrieves the result of the expression and displays it in the resultant document. While displaying the output of the expression, the value is converted to a string format. Table 4-2 lists the action of the <xsl:value-of> element based on the value of the expression in the select attribute:
Value of the Expression in the Select Attribute | Action of the <xsl:value-of> Element |
|---|---|
Boolean value | Converts the Boolean value to a string value, such as true or false. |
Node-set | Provides the value as output to the resultant document depending on the type of nodes in node-set. |
Numeric value | Converts the numeric value to the string format using the <xsl:number> element or the format-number() function. |
separator: Refers to a separator character for the values in the select attributes. The value specified in the separator concatenates the values specified in the select attribute. For example, in the following code, the asterisk character is the separator that concatenates the values a, b, c, and d of the select attribute:
<customer><xsl:value-of select ="(a, b, c, d)" separator ="*"/><customer/>
The output of the above code is:
No comments:
Post a Comment