Hi Jon,

Jon Pryce <[EMAIL PROTECTED]> writes:

> Thanks for the quick reply, but can you tell me if the normalizing code
> you have found working in 2.8.0 was missing or somehow broken in 2.6?

The relevant code in 2.6.0 appears to be the same as in 2.8.0. So I did
some more digging and I think 2.6.0 does the right thing. According to
the XML 1.0 spec, section 3.3.3, leading and trailing whitespaces
are discarded in attribute values only if the attribute type declared
in DTD is not CDATA. Furthermore, any attribute for which there is no
declaration should be treated as if declared CDATA. I believe this is
exactly what happens in your case.

Boris

-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

Reply via email to