Groupings are used in different elements in XSLfast. Page groupings are used for an automatic page break after a node (e.g. ProductGroup) or a node set (e.g. /Publication/ProductGroup/ProductGroup) has been processed.
Behind a page grouping there is a loop over the selected node or node set.
All elements in regions and in the body refer to the page grouping, which means the path I am currently on is the selected node of the page grouping. This means that all frames have a path relative to the page grouping. This is often the cause for problems, because the elements are in a dependency on the page grouping. If the page grouping is changed, groupings of tables and other elements must probably be changed as well. That is the reason why page groupings should be specified in an early stage of the layout design.
Example:
An XML file with 3 Product groups
• Product group A (contains 3 products)
• Product group B (contains 4 products)
• Product group C (contains 2 products)
In XML shape:
<Publication>
<ProductGroup>
<Name>Product group A</Name>
<Product>
<Name>Product 1</Name>
</Product>
<Product>
<Name>Product 2</Name>
</Product>
<Product>
<Name>Product 3</Name>
</Product>
</ProductGroup>
<ProductGroup>
<Name> Product group B</Name>
<Product>
<Name>Product 1</Name>
</Product>
<Product>
<Name>Product 2</Name>
</Product>
<Product>
<Name>Product 3</Name>
</Product>
<Product>
<Name>Product 4</Name>
</Product>
</ProductGroup>
<ProductGroup>
<Name> Product group C</Name>
<Product>
<Name>Product 1</Name>
</Product>
<Product>
<Name>Product 2</Name>
</Product>
</ProductGroup>
</Publication>
Examples for page grouping via the node Publication:
The result is a list with all products. The page break only happens after the page end was reached.
Definition:

Result:

Example for page grouping via the node ProductGroup:
With the start of a new product group there is an automatic page break. The new product group starts on a new page.
Definition:

Result
Page 1:

Page 2:

Page 3:

Example for page grouping via the node Product:
For every product there is a new page.
Definition:

Result:
Page 1:

Page 2:

...
...
Page 9:
