Improving fieldtypes XSL stylesheet for classes