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

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

From: Pratik Datta <pratik.datta@oracle.com>
Date: Tue, 26 Apr 2011 16:35:49 -0700 (PDT)
Message-ID: <e1cb9e74-f104-498d-873a-c8022d902377@default>
To: "Cantor, Scott E." <cantor.2@osu.edu>, public-xmlsec@w3.org
I have been trying to prototype C14N 2.0 and Java has an "isWhitespace" method. 

http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Character.html#isWhitespace(int)

But that isWhitespace has a different definition, from XML's whitespace.

Pratik

-----Original Message-----
From: Cantor, Scott E. [mailto:cantor.2@osu.edu] 
Sent: Tuesday, April 26, 2011 4:33 PM
To: Pratik Datta; public-xmlsec@w3.org
Subject: Re: Definition of whitespace for the TrimTextNodes parameter in C14N 2.0

On 4/26/11 5:45 PM, "Pratik Datta" <pratik.datta@oracle.com> wrote:
>In C14N 2.0, the TrimTextNodes parameter removes leading and trailing
>whitespace, but we haven't precisely defined what whitespace is.
> 
>I propose that we define it the same that the XML spec defines it, which
>is  space character, carriage return, line feed or tab.

That had been my assumption.

-- Scott
Received on Tuesday, 26 April 2011 23:36:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 26 April 2011 23:36:42 GMT