xsl:for-each-group

Allocates the items in an input sequence into groups of items (that is, it establishes a collection of sequences) based either on common values of a grouping key, or on a pattern that the initial or final node in a group must match.

Format

<xsl:for-each-group
               
  select = expression
               
  [group-by = expression]
               
  [group-adjacent = expression]
               
  [group-starting-with = pattern]
               
  [group-ending-with = pattern]
               
  [collation = { uri }>
               
  <!-- Content: (xsl:sort*, sequence-constructor) -->
               
</xsl:for-each-group>
               

            

Description

The xsl:for-each-group element is an instruction that can be used anywhere within a sequence constructor. The sequence of items to be grouped is referred to as a population. A group cannot be empty. If the population is zero (that is, empty), the number of groups is zero. How items are assigned to groups is determined by the group-by, group-adjacent, group-starting-with, and group-ending-with attributes.

Key Benefits of DataDirect XML Converters

Learn how DataDirect XML Converters were created to maximize XML developer productivity, push innovation, and provide unquestioned value.

Using DTD in Microsoft Applications

Learn how to integrate DTD's into your Microsoft applications using MSXML or System.XML DTD processing components.

XML Syntax Help - Intelligent XML Editing

Stylus Studio's XML Editors feature Intelligent XML Schema/DTD-Aware Code Sensing and context sensitive XML code auto-completion. Simplify XML editing with Stylus Studio today.

SQL/XML Tutorial

Many developers need to be able to write applications that work for databases from multiple vendors. This SQL/XML Tutorial refers to SQL/XML, XQuery, and Native XML Programming Languages to do just that.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member