Oops, my solution was faulty. Basing a StreamResult on a String doesn't do what I thought. You need to replace the ByteArrayOutputStream with a CharArrayWriter, and use *his* toString() method.
can you post this issue to the firstname.lastname@example.org mailing list? (which you can read without subscribing at http://news.gmane.org/gmane.comp.java.jetty.general )
My postings get censored from JBGroup forums and lists, so I'd
prefer to talk about this in a real open forum.
sorry for the incoveniance.
Replacing the ByteArrayOutputStream with a CharArrayWriter works like a champ.