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 13:29:48 UTC