Wonderful, the fix in r906613 has fixed this for me. Thanks Raymond, I
was starting to think i'd have to put back the jms binding to the old
away.

   ...ant

On Thu, Feb 4, 2010 at 5:08 PM, Raymond Feng <[email protected]> wrote:
> Hi,
>
> This is an interesting case where we have two DIRECT transformers between
> the source and target types. We only find the 1st one without considering
> the weight. Let me see if I can check the weight too.
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "ant elder" <[email protected]>
> Sent: Thursday, February 04, 2010 8:45 AM
> To: <[email protected]>
> Subject: Re: JAXB databinding converting from/to xml and trailing spaces
>
>> Thanks. I did try messing about with some of the rankings but not
>> really knowing what i was doing it just seemed to make things worse.
>>
>>  ...ant
>>
>> On Thu, Feb 4, 2010 at 4:37 PM, Raymond Feng <[email protected]> wrote:
>>>
>>> I'll take a look at the databinding registrations to make sure JAXB2Node
>>> has
>>> a priority.
>>>
>>> Thanks,
>>> Raymond
>>> --------------------------------------------------
>>> From: "ant elder" <[email protected]>
>>> Sent: Thursday, February 04, 2010 2:17 AM
>>> To: <[email protected]>
>>> Subject: Re: JAXB databinding converting from/to xml and trailing spaces
>>>
>>>> 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
>>>
>>>
>

Reply via email to