From http://www.w3schools.com (Copyright Refsnes Data)
XSLT Element Reference
The <xsl:value-of> element element extracts the value of a selected node.
The <xsl:value-of> element can be used to select the value of an XML element and add it to the output.
| <xsl:value-of select="expression" disable-output-escaping="yes|no" /> |
| Attribute | Value | Description |
|---|---|---|
| select | expression | Required. An XPath expression that specifies which node/attribute to extract the value from. It works like navigating a file system where a forward slash (/) selects subdirectories. |
| disable-output-escaping | yes no |
Optional. "yes" indicates that special characters (like "<") should be output as is. "no" indicates that special characters (like "<") should be output as "<". Default is "no" |
The example below puts the values from the first title and artist elements and puts it in a table:
Example 1
Try it yourself » |
The example below loops trough each cd element and creates a table row with the values from title and artist for each cd element:
Example 2
Try it yourself » |
XSLT Element Reference
From http://www.w3schools.com (Copyright Refsnes Data)