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

Re: Element default problem

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 13 Feb 2003 09:39:01 +0000
To: "Gabriele Zannoni" <gzannoni@deis.unibo.it>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bof5geczu.fsf@erasmus.inf.ed.ac.uk>

"Gabriele Zannoni" <gzannoni@deis.unibo.it> writes:

> Hi,
> I'm experiencing a little (understanding?) problem about defaulting
> elements.
> 
> If I declare an element:
> 
> <xs:element name="e2" type="xs:integer" default="12"/>
> 
> and I try to validate an instance element like this:
> 
> <e2 />
> 
> the msxml processor says that e2 is not valid. Msxml response could be right
> without specifying a default, but with a default there should be no
> problems.

Looks OK to me, and XSV is happy with it. . .

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 Thursday, 13 February 2003 04:38:56 GMT

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