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>

I'm experiencing a little (understanding?) problem about defaulting

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

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


Received on Thursday, 13 February 2003 03:15:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC