W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2003

Re: PSVI elements and attributes with default values

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 27 Jan 2003 13:15:44 +0000
To: Jeni Tennison <jeni@jenitennison.com>
Cc: xmlschema-dev@w3.org
Message-ID: <f5b8yx6zqbj.fsf@erasmus.inf.ed.ac.uk>

Jeni Tennison <jeni@jenitennison.com> writes:

> Can someone check whether I'm interpreting the XML Schema spec
> correctly when it comes to default values?
> 
> >From what I can tell, when an element is empty but its declaration
> specifies a default or fixed value, that value is given as its [schema
> normalized value] and it has a [schema specified] of the default
> value. However, no character information items are added to the
> [children] of the element information item -- so it's still empty from
> that point of view. Is that correct?

Yes.

> When an defaulted attribute is added, it looks as though the PSVI does
> not specify the values of the infoset properties [prefix], [normalized
> value], [specified], [attribute type] or [references].

All but the first of those are 'vanilla' Infoset values which schema
processing can't really 'fake' reasonably (prefix can't be faked for
more intrinsic reasons).

> Is the [normalized value] supposed to be an empty string or the same
> as the [schema normalized value]? Is [specified] supposed to be
> false?

They are supposed to be absent.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-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/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Monday, 27 January 2003 08:15:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:35 GMT