W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

Re: Mixed type fields

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 23 Jan 2001 08:32:46 +0000
To: James Clark <jjc@jclark.com>
Cc: XML Schema Comments <www-xml-schema-comments@w3.org>
Message-ID: <f5b4ryq8y8h.fsf@cogsci.ed.ac.uk>
James Clark <jjc@jclark.com> writes:

<snip/>

> t1 = "x  y" [token]
> t2 = "x y" [token]
> s1 = "x  y" [string]
> s2 = "x y" [string]
> 
> Which t/s pairs compare equal? Do I just compare the values after
> whitespace normalization according to their respective whiteSpace
> facets, which would imply t1 != s1, which seems a bit surprising?

Yup -- t1 = t2 = s2, and s1 is left out.

Works for me -- it's a consequence of comparing in the value space,
which is what makes '0.1' = '.1' if they're both decimals, but not if
they're strings.

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/
Received on Tuesday, 23 January 2001 03:32:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT