simplified xslt formatter support. old version was buggy and hard to follow