add auto-compact logic to results formatting
rename $class to $level in XSLT