W3C home > Mailing lists > Public > xml-editor@w3.org > January to March 2003

Re: Possible XML and C14N errata

From: Joseph Reagle <reagle@w3.org>
Date: Fri, 21 Feb 2003 13:29:47 -0500
To: "John Boyer" <JBoyer@PureEdge.com>, <xml-editor@w3.org>
Cc: <w3c-ietf-xmldsig@w3.org>
Message-Id: <200302211329.48074.reagle@w3.org>

On Friday 14 February 2003 16:15, John Boyer wrote:
> On the other hand, the XML rule for element 'content' refers to
> 'CharData', which only forbids the use of less-than (<) and ampersand (&)
> in character content.  The canonicalization rule for text node processing
> was based on the CharData rule, so it is possible to get a correct c14n
> program to write data that Xerces cannot read and that is possibly not
> well-formed XML.

I'm not sure what you mean by "based on", but if one accepts Francois's 
interpretation -- these chars are already excluded -- does anything have to 
change in c14n? The c14n for a text node takes the string value of the 
XPath text node and escapes '#xD', '<', and '>', but if these are precluded 
characters from the start, they wouldn't have appeared in an XPath text 
node, right?
Received on Friday, 21 February 2003 13:29:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:32 GMT