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

RE: Canonical XML & XML Schema

From: John Boyer <JBoyer@PureEdge.com>
Date: Thu, 28 Jun 2001 17:44:09 -0700
Message-ID: <7874BFCCD289A645B5CE3935769F0B521962ED@tigger.PureEdge.com>
To: "O'Leary, Don" <Don.OLeary@commerceone.com>, <w3c-ietf-xmldsig@w3.org>
Cc: "Schwarzhoff, Kelly" <kelly.schwarzhoff@commerceone.com>, "Jain, Mudita" <Mudita.Jain@commerceone.com>, "Hsu, Chong-Jen John" <chong.hsu@commerceone.com>, "Sanfilippo, Joe" <joe.sanfilippo@commerceone.com>

Hi Don,

By validating XML parser, we mean validation as described in the XML
recommendation, not XML schema validation.  So A) would be rendered.

This is not to say that future canonicalization algorithms will not be
defined to rely on such things as schema validation.  A good first,
though, would be an XPath reliant on the latest infoset (but that's
beside the point of your interest).

John Boyer
Senior Product Architect, Software Development
Internet Commerce System (ICS) Team
PureEdge Solutions Inc. 
Trusted Digital Relationships
v: 250-708-8047  f: 250-708-8010
1-888-517-2675   http://www.PureEdge.com <http://www.pureedge.com/>  	

-----Original Message-----
From: O'Leary, Don [mailto:Don.OLeary@commerceone.com]
Sent: Thursday, June 28, 2001 5:34 PM
To: w3c-ietf-xmldsig@w3.org
Cc: Schwarzhoff, Kelly; Jain, Mudita; Hsu, Chong-Jen John; Sanfilippo,
Subject: Canonical XML & XML Schema

Hi guys,

I had a quick question regarding Canonical XML and instances of XML

Section 2.1 of the Canonical XML standard specifies what the canonical
output for attributes should be.  
"the attribute value normalization and entity reference resolution MUST
performed in accordance with the behaviors of a validating XML

Is there any guidelines on how to handle data of a content model in the
instance of an XML Schema ?

Example, if we have the following XML Schema
 <xsd:element name="price" type="xsd:decimal"/>

and my instance looks like

  <price>12.00  </price>

should the Canonical form of this instance be 

A)	<price>12.00   </price>
B)	<price>12.00</price>

Notice that the white space has been stripped out from (B), whereas it
being retained in (A).

Any comments would be greatly appreciated.


Received on Thursday, 28 June 2001 20:44:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:10:05 UTC