OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML Schema 1.1



"Box, Don" <dbox@develop.com> writes:

> > -----Original Message-----
> > From: Tim Bray [mailto:tbray@textuality.com]
> > Sent: Wednesday, April 04, 2001 9:48 AM
> > To: Simon St.Laurent; xml-dev@lists.xml.org
> > Subject: Re: XML Schema 1.1
> > 
> > and personally I'd be
> > astounded to see anyone take on XML 1.1 in my lifetime; 
> 
> Especially since many consider XSD to be "XML 2.0" ;-)
> 
> In all seriousness, XSD makes the following three element instances
> identical:
> 
> <foo>200</foo>
> <foo>200.0</foo>
> <foo>200.0000000000000000</foo>
> 
> assuming the following element declaration is in scope:
> 
> <xsd:element name="foo" type="xsd:double" />

This is a slight exageration.  What is true is that XML Schema defines 
the 'actual value' of all three of those elements to be the same IEEE
double-precision floating point number.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/