for each « XSLT stylesheet « XML Tutorial
The xsl:for-each element allows all nodes in a node-set to be processed according to the XSLT instructions nested inside the xsl:for-each element.
Nested for-each loop with sorting
Output xml elements in for-each loop
for-each select=//address[generate-id(.)=generate-id(key(zipcodes, zip))]
Use for-each loop to output list items
for-each select="addressbook/address" and sort
compares sorted and unsorted xsl:for-each element
xsl:for-each instruction contains a template, which is applied to each node selected with select attribute.
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.