String ltSheet = sheets[i];
// System.out.println("ltSheet = " + ltSheet);
String expectedRTSheet = sheets[i + 1];
Parser parser = ParserFactory.createParser();
StringWriter out = new StringWriter();
SerializationDocumentHandler serializer = new SerializationDocumentHandler(out);
OrientationFilter filter = new OrientationFilter(serializer, true);
parser.setDocumentHandler(filter);
parser.parseStyleSheet(new InputSource(new StringReader(ltSheet)));
out.close();
String actualRTSheet = out.toString();