I have a lookup table which contains both description and filed names.
<Description>Invalid action indicator</Description>
I process following xml with the above lookup document.
Subject:Grouping on lookup values. Author:Alberto Massari Date:20 Sep 2007 06:58 AM
if you want to have the Fields to be written at the end, you shouldn't invoke the apply-templates in the SystemError template; you should instead create a template for ErrorGroup and fill it with a apply-template, then a for-each on SystemError with the call to Codes inside it.