W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > July to September 2011

Re: Canonical XML error

From: Thomas Roessler <tlr@w3.org>
Date: Wed, 7 Sep 2011 17:16:08 +0200
Cc: Thomas Roessler <tlr@w3.org>, Frederick.Hirsch@nokia.com, jboyer@PureEdge.com, w3c-ietf-xmldsig@w3.org, public-xmlsec@w3.org, "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, Henry Thompson <ht@cogsci.ed.ac.uk>, chris lilley <chris@w3.org>
Message-Id: <5F9F189D-29D5-4B8C-A601-944D7F4F24D2@w3.org>
To: Steve DeRose <steve.derose@openamplify.com>
On 2011-09-07, at 16:24 +0200, Steve DeRose wrote:

> To include that literal text content, an encoder must "escape" at least one of the 3 characters. Such escaping is obviously possible (if it were not, we would have dealt with it in the XML spec). For example:
> <p>In XML, the end of a marked section is indicated by "]]&gt;".</p>

So, this is a bit hidden, but processing of the string "]]>" when it occurs as part of a text node actually is specified and has a well-defined processing model:  Canonical XML encodes all ">" signs in text nodes as "&gt;".

See the note about text nodes here:
Received on Wednesday, 7 September 2011 15:16:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:41 UTC