generate xSL properly