Handling Nested Groups and display Header data
My XML data structure is as follows:
-G1
---G2
------G3
The fields from G1 form the core of the report header. (Example: Plant Description, Plant Address etc.)
G2 is Customer level info, like Customer code/name, Address, Contact etc.
G3 is the details records for invoices with balances.
So, the fields from G2 are like sub-header which should be repeated if records from G3 spillover to next page.
So, as per some postings on this forum, I put fields from G1 & G2 in the "Header" of the document.
In the body, I used <?for-each@section:group name?> syntax.
This results in G2 fields repeating when G3 spills over to next page,