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

Element default problem

From: Gabriele Zannoni <gzannoni@deis.unibo.it>
Date: Wed, 12 Feb 2003 12:13:18 +0100
Message-ID: <001c01c2d287$c2968ee0$8119fea9@gabriele>
To: <xmlschema-dev@w3.org>

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.

Is there someone that can tell me where's the error?



Thanks,

Gabriele
Received on Thursday, 13 February 2003 03:15:48 GMT

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