On Thu, Feb 4, 2010 at 10:17 AM, ant elder <[email protected]> wrote: > On Wed, Feb 3, 2010 at 1:35 PM, ant elder <[email protected]> wrote: >> On Wed, Feb 3, 2010 at 1:01 PM, Simon Laws <[email protected]> wrote: >>> Is this peculiar to a particular type of field and/or a particular >>> wire format? I've been looking at an issue recently to do with how XML >>> elements with a whiteSpace facet of "collapse" should have >>> trailing(leading) whitespace removed but it's not happening with wstx. >>> >>> Simon >>> >> >> Actually after debugging through I think its not the databinding but >> the DOMHelper saveAsString method where it losing the spaces. Perhaps >> there are some Transformer properties that could be set to control it. >> >> ...ant >> > > It turns out that wasn't true, where its actually going wrong is in > the databinding in the SimpleType2JavaTransformer mediator and what > makes it intermittent is that it seems to randomly choose either the > SimpleType2JavaTransformer or the Node2JAXB mediator. Node2JAXB > handles the spaces ok, SimpleType2JavaTransformer normalizes > whitespace. Not sure yet why it chooses different ones and its > difficult to debug as it can pick the same one lots of times in a row > so it can be hard to trap the different cases in the debugger. > > ...ant >
I've raised TUSCANY-3456 to track this. ...ant
