W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Re: Absence of "whiteSpace" facet

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 02 Dec 2000 18:44:17 +0000
To: jamieson_william@jpmorgan.com
Cc: www-xml-schema-comments@w3.org
Message-ID: <f5bbsuuu0hq.fsf@cogsci.ed.ac.uk>
Sorry for the delay in replying -- I've been on the road for two
weeks.

jamieson_william@jpmorgan.com writes:

> firstly, congratulations on the quality of the (proposed) XSD
> specification.

Thanks.

> My interpretation of this facet is that rather than being a constraining
> facet (i.e. whether an initial value can/not contain white space) it
> defines how an initial value will be normalised before validation (e.g. of
> length, enumerations etc.) is applied. In other words it directs the parser
> to ignore,collapse or observe the whitespace when validating the content.
> In effect it safes having the translate the document (in order to massage
> whitespace) prior to validation.

That's roughly correct.  It controls the whitespace processing
performed in computing the [schema normalized value] property of
attributes and (some) elements, which in turn is what is validated and 
what should be used for most if not all subsequent processing.

> On the assumption that the this interpretation is correct (living
> dangerously here) what is the impact if no "whiteSpace" facet appears in
> the simpleType definition?  Can I assume that "preserve" is the default
> behaviour?

Depends on the type.

  1) 'token' or derived from token: collapse;
  2) otherwise 'CDATA' or derived from 'CDATA': replace
  3) otherwise 'string' or derived from string: preserve
  4) otherwise collapse

> I hope you find the attached comments/opinions useful, please respond if
> you think I can add any value by expanding on them.

Thanks, they'll go in to the records.

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 Saturday, 2 December 2000 13:44:20 GMT

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