- 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>
"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 UTC