I've done that for JEmplode's output - and I even made JEmplode use the FIDs as ID attributes specifically to enable that kind of lookup. The output format of Emplode is IMHO inferior; it doesn't even have a DTD!

Have a look at my DSSSL stylesheet for JEmplode's output, now at version 2.
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)