W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2003

RE: line feed normalization in C14N

From: Gregor Karlinger <gregor.karlinger@iaik.at>
Date: Mon, 12 May 2003 09:31:33 +0200
To: "'Aleksey Sanin'" <aleksey@aleksey.com>, "John Boyer" <jboyer@PureEdge.com>
Cc: <w3c-ietf-xmldsig@w3.org>
Message-ID: <006101c31858$848f0520$21981b81@iktboard.local>
Alexey,
 
I am quite sure that "1. normalize line feeds" means what you can read
in XML 1.0 Second Edition in
http://www.w3.org/TR/REC-xml#sec-line-ends
 
Right, John?

Liebe Gruesse/Regards,
Gregor Karlinger
          

-----Original Message-----
From: w3c-ietf-xmldsig-request@w3.org
[mailto:w3c-ietf-xmldsig-request@w3.org] On Behalf Of Aleksey Sanin
Sent: Sunday, May 11, 2003 2:07 AM
To: w3c-ietf-xmldsig@w3.org
Subject: line feed normalization in C14N


Hi, All!

I have a question about line feed normalization in C14N. The spec says
that :

    http://www.w3.org/TR/2001/REC-xml-c14n-20010315#Terminology

    -  All whitespace in character content is retained (excluding
characters removed during 
    line feed normalization)   
    
    http://www.w3.org/TR/2001/REC-xml-c14n-20010315#DataModel 

    If an XML document must be converted to a node-set, XPath REQUIRES
that 
    an XML processor be used to create the nodes of its data model to
fully represent 
    the document. The XML processor performs the following tasks in
order:

1.	normalize line feeds 

2.	... 

During discussion in xmlsec mailing list we came up with two
possibilities:
    1) All '\r' characters from the document should be removed when
document is parsed 
    by XML processor.
    2) All '\r' should be converted to "&#D;" by the parser.

I would appreciate if someone can clarify this part of the
specification.

Thank you in advance,
Aleksey Sanin
Received on Monday, 12 May 2003 03:28:45 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:16 GMT