Standard Directive - Table has multiple rows

Start here:

Pay particular attention to the posts by @Rich

But the rest are essential as well.

The gist I got from it is do your work in the in trans data directive,
and pass it to the standard through the call context data or some other means
and do your final work/post there.