Whoops, fixed bug where error code not retrived correctly from xsl step.