Re: Mixed type fields

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 UTC