Re: whitespace and numbers

Jasmin Wason <jlw98r@ecs.soton.ac.uk> writes:

> If an XML Schema defines the type of an element to be an integer, is it
> acceptable for the instance document to contain whitespace within the
> tags for that element? E.g.
> 
> <number>    7</number>
> 
> I have used a parser that complains that this is not an integer. After
> looking at [1] it seems like this is a bug in the parser, but I just
> thought I'd check.

That's a valid element of type 'integer'.  But the whitespace stuff is 
new in the 22 September draft, so parsers may not have caught up yet.

ht

> [1] http://www.w3.org/TR/2000/CR-xmlschema-2-20001024/#dt-whiteSpace
-- 
  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 Wednesday, 15 November 2000 18:12:42 UTC