Canonical XML & XML Schema

Hi guys,

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

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 be
performed in accordance with the behaviors of a validating XML processor"

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 is
being retained in (A).


Any comments would be greatly appreciated.

Regards

Don

Received on Thursday, 28 June 2001 20:38:34 UTC