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

RE: Definition of whitespace for the TrimTextNodes parameter in C14N 2.0 ( LC-2484)

From: Pratik Datta <pratik.datta@oracle.com>
Date: Tue, 14 Jun 2011 11:47:19 -0700 (PDT)
Message-ID: <220094c9-c0fc-40c4-84c8-332eaba4f423@default>
To: frederick.hirsch@nokia.com
Cc: public-xmlsec@w3.org
Yes, I agree with the resolution.

Pratik

-----Original Message-----
From: frederick.hirsch@nokia.com [mailto:frederick.hirsch@nokia.com] 
Sent: Tuesday, June 14, 2011 6:30 AM
To: Pratik Datta
Cc: public-xmlsec@w3.org
Subject: Re: Definition of whitespace for the TrimTextNodes parameter in C14N 2.0 ( LC-2484)


 Dear Pratik Datta ,

The XML Security Working Group has reviewed the comments you sent [1] on
the Last Call Working Draft [2] of the Canonical XML Version 2.0 published
on 21 Apr 2011. Thank you for having taken the time to review the document
and to send us comments!

The Working Group's response to your comment is included below.

Please review it carefully and let us know by email at
public-xmlsec@w3.org if you agree with it or not before 28 June 2011. In
case of disagreement, you are requested to provide a specific solution for
or a path to a consensus with the Working Group. If such a consensus cannot
be achieved, you will be given the opportunity to raise a formal objection
which will then be reviewed by the Director during the transition of this
document to the next stage in the W3C Recommendation Track.

Thanks,

For the XML Security Working Group,
Thomas Roessler
W3C Staff Contact

 1. http://www.w3.org/mid/97616abb-bd15-4c36-beb7-80539519f4a6@default
 2. http://www.w3.org/TR/2011/WD-xml-c14n2-20110421/


=====

Your comment on :
> 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.
> 
>  
> 
> Here is the excerpt from XML  specification 
> http://www.w3.org/TR/xml/#NT-S 
> 
>  
> 
> ----------------------------------------------------------------
> 
> S (white space) consists of one or more space (#x20) characters,
> carriage returns, line feeds, or tabs.
> 
>  
> 
> White Space
> 
> [3]    S    ::=    (#x20 | #x9 | #xD | #xA)+ 
> 
>  
> 
> Note:
> 
>  
> 
> The presence of #xD in the above production is maintained purely for
> backward compatibility with the First Edition. As explained in 2.11
> End-of-Line Handling, all #xD characters literally present in an XML
> document are either removed or replaced by #xA characters before any
> other processing is done. The only way to get a #xD character to match
> this production is to use a character reference in an entity value
> literal.
> 
> -----------------------------------------------------------
> 
>  
> 
> Pratik


Working Group Resolution (LC-2484):
http://lists.w3.org/Archives/Public/public-xmlsec/2011Jun/0002.html

In Section 2.3, added this line into "Text Nodes"
 - Whitespace consists of space (#x20) characters, carriage returns, line
feeds, or tabs.

reference to XML 1.0 also added  to this text 



----
Received on Tuesday, 14 June 2011 18:48:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 14 June 2011 18:48:27 GMT