Re: PSVI elements and attributes with default values

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 UTC