|
|||||
| | |||||
This example creates an paragraph around a car element with a color child
element. The paragraph will contain the value of the color child
element in
the output:<xsl:template match="car">
<p>
<xsl:value-of select="color"/>
</p>
</xsl:template>
|
This example writes the string value of the current node to the output:
<xsl:value-of select="."/> |
This example writes 10 to the output:
<xsl:value-of select="5+5"/> |
This example writes the string value of the first child <book>
element of the current node to the output:
<xsl:value-of select="book"/> |
This example writes the value of the variable book to the output:
<xsl:value-of select="{$book}"/>
|
| Leave a Reply |