// Don't render the document out before transforming as it is
// destructive and loses the styles.
// String before = helper.render(document);
// System.out.println("before: " + before);
//
MutableStylePropertySet interesting =
new MutableStylePropertySetImpl();
interesting.add(StylePropertyDetails.WIDTH);
DebugStyledDocument debugStyledDocument;
debugStyledDocument = new DebugStyledDocument(interesting);
String before = debugStyledDocument.debug(document);