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

XML C14N Comments

From: Richard D. Brown <rdbrown@Globeset.com>
Date: Thu, 5 Aug 1999 18:01:10 -0500
To: <w3c-ietf-xmldsig@w3.org>
Message-ID: <00d001bedf96$69086980$0bc0010a@artemis.globeset.com>
Here are my comments wrt Canonical XML W3C Working Draft dated 29th of July,

1- COMMENT ON 2.8 and 5.3:

The reference to the DTD and, to a lesser extent, the XML version are
important pieces of information. It may happen that two documents differ
only by their document type. Although it might not be a great example, I can
think about an actual invoice and an invoice proforma. Removing the document
type probably implies that a similar piece of information shall be embedded
in the document contents.

A remedy to this problem could be to use the document DTD URI as the default
namespace for all elements not otherwise associated to a namespace. This is
usually the case for the root element (see following example)


<?xml version='1.0'?>
<!DOCTYPE Document SYSTEM 'http://w3.org/example.dtd'>


<n1:Document xmlns:n1='http://w3.org/example.dtd'>
  <n1:Content xmlns:n1='http://w3.org/example.dtd'>
  <n1:Signature xmlns:n1='http://w3.org/xmldsig.dtd'>

2- COMMENT ON 5.2 (2rd bullet)

I suppose that the author meant &#13 instead of &#x13.

btw: &#xD, &#xd, and &#13 are equivalent. Does this mean that we should
propose a canonical representation for the character references in attribute
value and character data?

3- COMMENT ON 5.2 (3rd bullet)
This rule does not properly reflect the XML specification wrt
Attribute-value Normalization. Discarding whitespace characters is limited
to leading and trailing whitespace characters in the value of attributes
declared with a type other than CDATA. And, in the abscence of declaration,
an attribute is assumed to be of type CDATA.

It seems that this rule contradicts 5.2 (9th bullet) and 5.7.

4- COMMENT ON 5.2 (9rd bullet)

See previous comment.


Richard D. Brown
Chief Software Architect - R&D
Globeset, Inc. Austin, TX - U.S.
Received on Thursday, 5 August 1999 19:01:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:55 UTC