xsl:for-each

  • Loops through a set of nodes.

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template name="test">
        <xsl:for-each select="*">
          ...
        </for-each>
      </xsl:template>
    </xsl:stylesheet>
    					
  • The XPath value for the select attribute has to return a node-set.