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

RE: Element default problem

From: Dare Obasanjo <dareo@microsoft.com>
Date: Thu, 13 Feb 2003 13:11:58 -0800
Message-ID: <B885BEDCB3664E4AB1C72F1D85CB29F804B7C8E2@RED-MSG-10.redmond.corp.microsoft.com>
To: "Gabriele Zannoni" <gzannoni@deis.unibo.it>, <xmlschema-dev@w3.org>

This is due to a bug in MSXML. 

-- 
PITHY WORDS OF WISDOM 
Identical units which test in an identical fashion will not behave in an
identical fashion in the field.                               

This posting is provided "AS IS" with no warranties, and confers no
rights. 

>  
>  
> -----Original Message-----
> From: Gabriele Zannoni [mailto:gzannoni@deis.unibo.it] 
> Sent: Wednesday, February 12, 2003 3:13 AM
> 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 16:12:52 GMT

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