In a xml of the form:

I want an output of the form header_nr | line_nr . That header number will allow me to join with the headers table to get the id, or else I won't know how to get a reference.

Any way to do this? Or can I get another approach? Thanks