XSLT <xsl:for-each>
Element
Definition and Usage
The <xsl:for-each>
element iterates over each node in a specified node set.
Syntax
Attributes
Attribute | Value | Description |
---|---|---|
select | expression | Required. An XPath expression that specifies the node set to be processed. |
Examples
The following example iterates over each cd
element and writes each cd
to the output:
Example
The following example iterates over each cd
element and creates a table displaying the title and artist of each cd
: