In my report I have two for-each and each one must have a static text as a header.
I try this solution:
`<?xdoxslt:get_variable($_XDOCTX, 'HEADER')?>
<?start:body?>
<?for-each@section:G_1?>
<?xdoxslt:set_variable($_XDOCTX, 'HEADER', 'Group 1')?>
<?end for-each?>
<?for-each@section:G_2?>
<?xdoxslt:set_variable($_XDOCTX, 'HEADER', 'Group 2')?>
<?end for-each?>
<?end body?>`
If the two for-each are with @section it won't execute. When I leave just one with @section it runs only this one and updates the header correctly but I need both to update.