W3C home > Mailing lists > Public > public-xmlsec@w3.org > April 2011

Re: Definition of whitespace for the TrimTextNodes parameter in C14N 2.0

From: Cantor, Scott E. <cantor.2@osu.edu>
Date: Wed, 27 Apr 2011 02:08:15 +0000
To: "edsimon@xmlsec.com" <edsimon@xmlsec.com>
CC: Pratik Datta <pratik.datta@oracle.com>, "public-xmlsec@w3.org" <public-xmlsec@w3.org>
Message-ID: <C9DCF26B.988B%cantor.2@osu.edu>
On 4/26/11 9:47 PM, "edsimon@xmlsec.com" <edsimon@xmlsec.com> wrote:
>I agree about following the XML specification on this. That said, what is
>defined as whitespace may vary from character set to character set.
>Unicode, for example, defines whitespace characters [1] that are not
>considered whitespace in the XML spec...and that makes me curious given
>that XML would tend to need to define whitespace in terms of specific
>characters.

That's why they were explicit about it. If it's not one of those original
characters, then XML doesn't treat it as whitespace even if the character
set happens to do that. So functions like isspace() in C/C++ just aren't
appropriate for XML whitespace determination.

-- Scott
Received on Wednesday, 27 April 2011 02:08:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 April 2011 02:08:50 GMT