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

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 UTC